2004-03-16 08:56:58 -01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# post-boot-hppa
|
|
|
|
#
|
|
|
|
# Do post-image-building tasks for hppa, to make CDs bootable.
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
# $3 is the image file
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDROOT=$2
|
|
|
|
CDIMAGE=$3
|
|
|
|
|
|
|
|
cd $CDROOT/..
|
|
|
|
|
|
|
|
# Only disk 1* bootable
|
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2004-11-29 17:36:42 -01:00
|
|
|
K32=$(ls $CDROOT/install/vmlinux-*-32|head -1)
|
|
|
|
K64=$(ls $CDROOT/install/vmlinux-*-64|head -1)
|
2005-09-26 21:25:25 +00:00
|
|
|
RSIZE=$(expr $(zcat "$CDROOT/install/initrd.gz" | wc --bytes) / 1024)
|
2004-04-28 06:23:00 +00:00
|
|
|
/sbin/palo \
|
2005-09-26 21:25:25 +00:00
|
|
|
--commandline="0/vmlinux root=/dev/ram initrd=0/ramdisk ramdisk_size=$RSIZE init=/linuxrc"
|
2004-04-14 10:44:46 +00:00
|
|
|
--recoverykernel="$K32" \
|
|
|
|
--recoverykernel="$K64" \
|
|
|
|
--bootloader="$CDROOT/install/iplboot" \
|
|
|
|
--ramdisk="$CDROOT/install/initrd.gz" \
|
2004-03-16 08:56:58 -01:00
|
|
|
--init-cdrom=$CDIMAGE --configfile=/dev/null
|