Building A Solaris 10 Recovery DVD
Create A Solaris Jumpstart Profile
I'm not sure this step is necessary in order for the flash archive to work, but as a precaution create a "flashinstall_profle". It is recommended that you use a plain text ASCII editor like vi or gedit for all the file modifications. Any other kind of editor might leave hidden characters in the documents. Also, please be sure to always save after editing.
cd /opt/sol10dvd/.install_config/
vi flashinstall_profile
Add the lines below to the file. Keep in mind that the "archive location" line reflects the name of my flash archive and the "filesys" lines reflect my filesystem layout. Modify to suit.
install_type flash_install
archive_location local_file /cdrom/ intel_D201GLY_0.flar
partitioning explicit
filesys rootdisk.s0 20480 /
filesys rootdisk.s1 2048 swap
filesys rootdisk.s2 all overlap
filesys rootdisk.s3 20480 /var
filesys rootdisk.s4 20480 /usr
filesys rootdisk.s5 10240 /tmp
filesys rootdisk.s6 102400 /export/home
filesys rootdisk.s7 free /opt
The "filesys rootdisk.s2 all overlap" line is of particular interest. This is the slice that represents the whole partition encompassing all the other slices (uses the "all" designation in the size field). It's not mounted like the other slices but it's part of the layout overhead used by Sun. The last slice has the size designation of "free" which means all the leftover space once the other slices are created (it turned out to be 133 Gigabytes in my case).
Creating & Validating The Rules File
Again, I'm not sure this step is necessary in order for the flash archive to work, but as a precaution a "rules" file should be created and checked.
mv rules.ok rules.ok.orig
echo "any - - flashinstall_profile -" > rules
/opt/sol10dvd/Solaris_10/Misc/jumpstart_sample/check
The resulting output from the last command should look similar to:
Validating rules...
Validating profile flashinstall_profile...
The custom JumpStart configuration is ok.
Uncompressing & Mounting The Miniroot Environment
The miniroot is a small compressed (gzip) file-system used by the kernel that has necessary tools for an install. It is in an ISO image format. To access and edit its contents, we must first uncompress (gunzip) it, then mount the resulting image directly into the file system (/mnt) with the commands of lofiadm, and mount.
cd /opt/sol10dvd/boot
mv x86.miniroot x86.miniroot.gz
gunzip x86.miniroot.gz
lofiadm –a `pwd`/x86.miniroot
mount /dev/lofi/1 /mnt
Please note that `pwd` in the fourth command above is not surrounded by apostrophes but graves - the backwards facing apostrophes usually found on the same key as the tilde (~). Also, the lofiadm instance created will be the number one (not the letter l), so make sure the last command has /dev/lofi/1.
