Customization of the UCS install DVD

From Univention Wiki

Revision as of 09:23, 14 September 2012 by Botner (talk | contribs)
Jump to: navigation, search

The best platform to customize a ucs install dvd is the corresponding ucs system. The following software packages have to be installed.

grub-common
apt-utils

The first step is to copy the install dvd content to a local directory (/cdrom can also be a iso image, then mount -o loop /isofile is required).

mkdir /opt/cd.new
mount /cdrom 
cp -a /cdrom/* /opt/cd.new/
cp -a /cdrom/.??* /opt/cd.new/
umount /cdrom
chmod -R 755 /opt/cd.new

The following adjustments are possible:

  • new/updated packages -> /opt/cd.new/packages/
  • new installation profiles -> /opt/cd.new/profiles/
  • grub configuration -> /opt/cd.new/boot/grub/grub.cfg
  • additional ucs installer scripts -> /opt/cd.new/script/installer

If packages are added or updated, the packages file have to be recreated:

cd /opt/cd.new/packages/
apt-ftparchive packages ./ >Packages && gzip -c Packages >Packages.gz
if [ -d dists/univention/main/binary-i386 ]; then
    apt-ftparchive packages ./ >dists/univention/main/binary-i386/Packages
    gzip -c dists/univention/main/binary-i386/Packages >dists/univention/main/binary-i386/Packages.gz
fi
if [ -d dists/univention/main/binary-amd64 ]; then
    apt-ftparchive packages ./ >dists/univention/main/binary-amd64/Packages
    gzip -c dists/univention/main/binary-amd64/Packages >dists/univention/main/binary-amd64/Packages.gz
fi

The new image can be created with the following command:

grub-mkrescue -o /opt/cd-new.iso /opt/cd.new
Personal tools