Ignite-UX USB Memory Stick Boot
10
Appendix A: An Example Script to Configure the USB
Device with Ignite Boot Content
#!/bin/sh -x
# First command line argument is USB stick device file basename (e.g.
c3t1d0)
# Second command line argument is the HP-UX release (e.g. 11.31)
disk=$1
rel=$2
cat <<@EOF > /tmp/idisk.txt
2
EFI 300MB
HPUX 1000MB
@EOF
idisk -w -q -f /tmp/idisk.txt /dev/rdsk/${disk}
rm /tmp/idisk.txt
ioscan > /dev/null
insf -e -C disk > /dev/null
newfs -F hfs -R 50 /dev/rdsk/${disk}s2
mkdir /tmp/mnt
mount /dev/dsk/${disk}s2 /tmp/mnt
cp /opt/ignite/boot/Rel_B.${rel}/IINSTALL /tmp/mnt
cp /opt/ignite/boot/Rel_B.${rel}/IINSTALLFS /tmp/mnt
cat <<@EOF > /tmp/IFS.cfg
# Ignite-UX media boot helper
@EOF
/opt/ignite/bin/instl_adm -f /tmp/IFS.cfg -F /tmp/mnt/IINSTALLFS
rm /tmp/IFS.cfg
umount /tmp/mnt
mkboot -v /dev/rdsk/${disk} > /dev/null
cat <<@EOF > /tmp/AUTO.txt
boot /IINSTALL
@EOF
efi_cp -d /dev/rdsk/${disk}s1 /tmp/AUTO.txt EFI/HPUX/AUTO
rm /tmp/AUTO.txt