Difference between revisions of "Customization of the UCS install DVD"
From Univention Wiki
(Created page with "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 i...") |
|||
Line 1: | Line 1: | ||
− | The best platform to customize a ucs install dvd is the corresponding | + | The best platform to customize a ucs install dvd is the corresponding ucs system. The following software packages have to be installed. |
− | ucs system. The following software packages have to be installed. | ||
grub-common | grub-common | ||
apt-utils | apt-utils | ||
− | The first step is to copy the install dvd content to a local directory | + | 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). |
− | (/cdrom can also be a iso image, then mount -o loop /isofile is | ||
− | required). | ||
mkdir /opt/cd.new | mkdir /opt/cd.new | ||
Line 16: | Line 13: | ||
chmod -R 755 /opt/cd.new | chmod -R 755 /opt/cd.new | ||
− | The following adjustments are possible: | + | The following adjustments are possible: |
− | new/updated packages - | + | * new/updated packages -> /opt/cd.new/packages/ |
− | installation profiles - | + | * new installation profiles -> /opt/cd.new/profiles/ |
− | grub configuration - | + | * grub configuration -> /opt/cd.new/boot/grub/grub.cfg |
− | additional ucs installer scripts - | + | * 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 ./ | + | 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 ./ | + | apt-ftparchive packages ./ >dists/univention/main/binary-i386/Packages |
− | gzip -c dists/univention/main/binary-i386/Packages | + | gzip -c dists/univention/main/binary-i386/Packages >dists/univention/main/binary-i386/Packages.gz |
fi | fi | ||
if [ -d dists/univention/main/binary-amd64 ]; then | if [ -d dists/univention/main/binary-amd64 ]; then | ||
− | apt-ftparchive packages ./ | + | apt-ftparchive packages ./ >dists/univention/main/binary-amd64/Packages |
− | gzip -c dists/univention/main/binary-amd64/Packages | + | gzip -c dists/univention/main/binary-amd64/Packages >dists/univention/main/binary-amd64/Packages.gz |
fi | fi | ||
− | The new image can be created with the following command: | + | The new image can be created with the following command: |
grub-mkrescue -o /opt/cd-new.iso /opt/cd.new | grub-mkrescue -o /opt/cd-new.iso /opt/cd.new |
Revision as of 09:23, 14 September 2012
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