Difference between revisions of "Customization of the UCS install DVD"

From Univention Wiki

Jump to: navigation, search
(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...")
 
(Aktualisiert.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
The best platform to customize a ucs install dvd is the corresponding
+
{{Version|UCS=3.0}}
ucs system. The following software packages have to be installed.
 
  
grub-common
+
This article provides a short description about how to customize an ISO image of a UCS installation DVD.
apt-utils
 
  
The first step is to copy the install dvd content to a local directory
+
== Requirements ==
(/cdrom can also be a iso image, then mount -o loop /isofile is
+
 
required).
+
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 16: Line 20:
 
  chmod -R 755 /opt/cd.new
 
  chmod -R 755 /opt/cd.new
  
The following adjustments are possible:
+
== Customization ==
 +
 
 +
The following customizations are possible:  
  
new/updated packages -> /opt/cd.new/packages/
+
* Provide new or updated packages /opt/cd.new/packages/  
installation profiles -> /opt/cd.new/profiles/
+
* Provide new installation profiles /opt/cd.new/profiles/  
grub configuration -> /opt/cd.new/boot/grub/grub.cfg
+
* Provide a customized grub configuration /opt/cd.new/boot/grub/grub.cfg  
additional ucs installer scripts -> /opt/cd.new/script/installer
+
* 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 ./ &gt; Packages &amp;&amp; gzip -c Packages &gt;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 ./ &gt;dists/univention/main/binary-i386/Packages
     gzip -c dists/univention/main/binary-i386/Packages >dists/univention/main/binary-i386/Packages.gz
+
     gzip -c dists/univention/main/binary-i386/Packages &gt;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 ./ >dists/univention/main/binary-amd64/Packages
+
     apt-ftparchive packages ./ &gt;dists/univention/main/binary-amd64/Packages
     gzip -c dists/univention/main/binary-amd64/Packages >dists/univention/main/binary-amd64/Packages.gz
+
     gzip -c dists/univention/main/binary-amd64/Packages &gt;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

Latest revision as of 09:53, 14 September 2012

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