Building A Solaris 10 Recovery DVD

Written by Christian Joaquin Cruz in Operating Systems on 4 October 2007 at 09:45 AM EDT. Page 4 of 6. 1 Comment.

Editing Profind In The Miniroot

Open the file profind (vi /mnt/usr/sbin/install.d/profind) and locate the following section of code and insert the lines after the comment:

cdrom()
{
# Factory JumpStart is only allowed with factory
# stub images, indicated by the file /tmp/.preinstall
#
if [ -f /tmp/.preinstall ]; then
mount -o ro -F lofs ${CD_CONFIG_DIR} ${SI_CONFIG_DIR}>/dev/null 2>&1
if [ $? -eq 0 ]; then
verify_config "defaults" "CDROM"
fi
fi
# Added to profind
gettext "<<< using CD default >>>";echo
rmdir ${SI_CONFIG_DIR}
ln -s /cdrom/.install_config ${SI_CONFIG_DIR}
exit 0
# End of profind modifications
}

Editing the sysidcfg File

cd /mnt/etc
mv sysidcfg sysidcfg.orig
vi sysidcfg

Insert the following lines (modify to suit your environment). Also, copy and paste the encrypted root password (from /etc/shadow) in the line beginning with "root_password=" as show below.

system_locale=en_US
terminal=xterm
timezone=GMT0
name_service=NONE
timeserver=localhost
root_password=BewrMLSQU6FWQ <- BewrMLSQU6FWQ Copied from my /etc/shadow
security_policy=NONE
network_interface=primary
{ hostname=helios
ip_address=192.168.1.100
default_route=192.168.1.1
netmask=255.255.255.0
protocol_ipv6=no }

Unmount & Re-compress The Miniroot

cd /
umount /mnt
lofiadm -d /dev/lofi/1
cd /opt/sol10dvd/boot
gzip -9 x86.miniroot
mv x86.miniroot.gz x86.miniroot

Related Articles