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.


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/
mount /cdrom 
cp -a /cdrom/* /opt/
cp -a /cdrom/.??* /opt/
umount /cdrom
chmod -R 755 /opt/

The following adjustments are possible:

  • new/updated packages -> /opt/
  • new installation profiles -> /opt/
  • grub configuration -> /opt/
  • additional ucs installer scripts -> /opt/

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

cd /opt/
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
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

The new image can be created with the following command:

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