Customization of the UCS install DVD

From Univention Wiki

Jump to: navigation, search
Produktlogo UCS Version 3.0

This article provides a short description about how to customize an ISO image of a UCS installation DVD.

Requirements

The best platform to customize a UCS install DVD is the corresponding UCS system. The following software packages need to be installed:

univention-install grub-common apt-utils xorriso

Preparation

To customize a UCS install DVD image, the content of the ISO image file or the DVD has to be copied in a new local directory. The example assumes the content at /cdrom. The ISO image needs to be mounted to this location with mount -o loop /isofile /cdrom.

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

Customization

The following customizations are possible:

  • Provide new or updated packages → /opt/cd.new/packages/
  • Provide new installation profiles → /opt/cd.new/profiles/
  • Provide a customized grub configuration → /opt/cd.new/boot/grub/grub.cfg
  • Add 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