Creating UBLinux

  1. Selecting Packages
  2. Creating the Distribution
  3. Editing the Boot Disk
  4. Customizing Anaconda
  5. Creating the Kickstart
  6. Making the ISOs

Customizing Anaconda

As mentioned previously, Anaconda is intended to be customized through use of the buildinstall command. As we were having difficulty using this, we instead opted to alter stage2.img (which stores anaconda) directly. First, we need to mount stage2.img and alter its contents. If you followed the previous section, the file should be located in /home/ublinux. Otherwise, you can get the file from RHEL WS 3 CD 1 in /RedHat/base.

First, we mount the image using

mkdir /mnt/anaconda
mount -o loop /home/ublinux/stage2.img /mnt/anaconda

Now we need to copy the contents to a directory where we can alter the files. The issue with RHEL WS 3 which we didn't experience with RH9 is that there are several hard links here that will NOT transfer over if we simply copied /mnt/anaconda somewhere else. For this reason, we used tar to package the contents of the directory, and then untarred them where we could work on them.

cd /mnt/anaconda
tar -cvf /home/ublinux/stage2.tar .
cd /home/ublinux
mkdir stage2
cd stage2
tar -xvf /home/ublinux/stage2.tar

If we did not do this this way, then when we included the final stage2.img in our distribution we'd get a "CD Not Found" error when Anaconda would load.

With the contents of stage2.img in an editable directory, you can now alter the images used by the installer located in usr/share/anaconda/pixmaps and the images used in the installation slideshow in usr/share/anaconda/pixmaps/rnotes. You can also edit the text in the left sidebar, which are in HTML format, in usr/share/anaconda/help/[locale].

After you've made the desired modifications, we need to compress this information back into an img file.

cd /home/ublinux
mkcramfs stage2/

Then, copy the altered stage2.img to the RedHat/base directory in the first CD.

cp /home/ublinux/ /home/ublinux/i386/disc1/RedHat/base/stage2.img

Next, let's take a look at how we automated and simplified installation by "Creating the Kickstart".

Back to Technical Documentation index

Send Questions and comments to

Last Modified 9/02/04 11:45pm