how to create jumpstart installation CD for Solaris 9

From: K, Sharath (Sharath) (sharath@lucent.com)
Date: Wed Oct 22 2003 - 04:18:05 EDT


Hi,
        I need to create a customized jumpstart installation CD for Solaris
9. The requirement is to boot from this CD, load the customized profiles
from the rules.ok file (on the CD) and install the OS from the local tape
drive.

Based on this document
http://www.sun.com/solutions/blueprints/0301/BuildBoot.pdf
we were able to successfully create the same which worked fine on Solaris 8,
but which is not working on Solaris 9. I am using SunFire V880 server

This is my requirement (which was working fine with Solaris 8)
----------------------------------------------------------------------------
----------------
1. We install Solaris from a tape drive (on which we have the entire image
of Solaris 8)
2. To boot, we use a customized jumpstart CD which is created as follows:

        a) Copy contents of slice 0 to customize

                newfs -m 1 /dev/rdsk/c1t0d0s7
                mkdir /bicd8
                mount /dev/dsk/c1t0d0s7 /bicd8
                mkdir /bicd8/s0
                cd /cdrom/cdrom/s0
                find . -print | cpio -pudm /bicd8/s0

        b) Copy slice 1 to slice 5 as it is

                cd /bicd8
                for i in 1 2 3 4 5
                do
                        dd if=/dev/dsk/c0t6d0s${i} of=sol2.8.s${i} bs=512
                done

        c) Copy VTOC
                dd if=/dev/dsk/c0t6d0s0 of=/bicd8/sol2.8.cdrom.vtoc bs=512
count=1

        d) Make changes
                We add rules.ok file containing "karch sun4u v880_begin
v880_profile v880_finish"
                Our v880_profile contains something like
                        install_type flash_install
                        archive_location local_tape 0m
                        .........
                
                We modify the cdrom( ) method in
/bicd8/s0/Solaris2_8/Tools/Boot/usr/sbin/install.d/profind script as
                        cdrom( )
                        {
                                gettext " <<< using CD default >>>"; echo
                                rmdir ${SI_CONFIG_DIR}
                                ln -s /cdrom/.install_config
${SI_CONFIG_DIR}
                                exit 0
                        }

                These customizations are done in /bicd8/s0 directory where
we copied the original contents from CD

        e) Make iso image and remove incorrect VTOC from this image
                mkisofs -R -d -L -l -o /bicd8/sol2.8.s0 /bicd8/s0
                dd if=/bicd8/sol2.8.s0 of=/bicd8/new.sol2.8.s0 bs=512 skip=1

        f) Generate correct padding based on output of dd command above and
original size of s0 slice
                dd if=/dev/zero of=pad.s0 bs=512 count=$PAD

        g) Cat the original VTOC with all the images along with padding for
s0 and write to CD
                cat sol2.8.cdrom.vtoc new.sol2.8.s0 pad.s0 sol2.8.s1
sol2.8.s2 sol2.8.s3 sol2.8.s4 sol2.8.s5 > bicd2.8.iso

Now the problem with Solaris 9 is that the profind script has been moved
from s0 to s1 and I have already wasted 3 CDs trying to modify this script
in s1 and trying to concatenate with the other slice images. The CD does not
boot.

I don't know what is wrong. Is it because s0 is HSFS and s1 is UFS and do I
need to use some other command on s1 slice other than mkisofs or something ?

I would be grateful if someone could help me out

Thanks,
Sharath
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:20 EDT