Customization of the UCS install DVD

From Univention Wiki

Revision as of 09:53, 14 September 2012 by Gulden (talk | contribs) (Aktualisiert.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.


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


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


The following customizations are possible:

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