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

From Univention Wiki

Jump to: navigation, search
(Aktualisiert.)
 
Line 1: Line 1:
The best platform to customize a ucs install dvd is the corresponding ucs system. The following software packages have to be installed.  
+
{{Version|UCS=3.0}}
  
grub-common
+
This article provides a short description about how to customize an ISO image of a UCS installation DVD.
apt-utils
 
xorriso
 
  
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).  
+
== 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 adjustments are possible:  
+
== Customization ==
 +
 
 +
The following customizations are possible:  
  
* new/updated packages -&gt; /opt/cd.new/packages/  
+
* Provide new or updated packages /opt/cd.new/packages/  
* new installation profiles -&gt; /opt/cd.new/profiles/  
+
* Provide new installation profiles /opt/cd.new/profiles/  
* grub configuration -&gt; /opt/cd.new/boot/grub/grub.cfg  
+
* Provide a customized grub configuration /opt/cd.new/boot/grub/grub.cfg  
* additional ucs installer scripts -&gt; /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 ./ &gt;Packages &amp;&amp; gzip -c Packages &gt;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 ./ &gt;dists/univention/main/binary-i386/Packages
 
     apt-ftparchive packages ./ &gt;dists/univention/main/binary-i386/Packages

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