Difference between revisions of "Customization of the UCS install DVD"
From Univention Wiki
(Aktualisiert.) |
|||
Line 1: | Line 1: | ||
− | + | {{Version|UCS=3.0}} | |
− | + | This article provides a short description about how to customize an ISO image of a UCS installation DVD. | |
− | |||
− | |||
− | The | + | == 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 <tt>mount -o loop /isofile /cdrom</tt>. | ||
mkdir /opt/cd.new | mkdir /opt/cd.new | ||
Line 14: | Line 20: | ||
chmod -R 755 /opt/cd.new | chmod -R 755 /opt/cd.new | ||
− | The following | + | == Customization == |
+ | |||
+ | The following customizations are possible: | ||
− | * new | + | * Provide new or updated packages → /opt/cd.new/packages/ |
− | * new installation profiles | + | * Provide new installation profiles → /opt/cd.new/profiles/ |
− | * grub configuration | + | * Provide a customized grub configuration → /opt/cd.new/boot/grub/grub.cfg |
− | * additional | + | * Add additional UCS installer scripts → /opt/cd.new/script/installer |
If packages are added or updated, the packages file have to be recreated: | If packages are added or updated, the packages file have to be recreated: | ||
cd /opt/cd.new/packages/ | cd /opt/cd.new/packages/ | ||
− | apt-ftparchive packages ./ >Packages && gzip -c Packages >Packages.gz | + | apt-ftparchive packages ./ > Packages && gzip -c Packages >Packages.gz |
if [ -d dists/univention/main/binary-i386 ]; then | if [ -d dists/univention/main/binary-i386 ]; then | ||
apt-ftparchive packages ./ >dists/univention/main/binary-i386/Packages | apt-ftparchive packages ./ >dists/univention/main/binary-i386/Packages |
Latest revision as of 09:53, 14 September 2012
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