1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
# bootcd-hppa.lib
# vim: set filetype=sh :
cdimage_hppa()
{
mkisofs_ignore
MKISOFS_OPTS="$GRAFTPOINTS $MKISO_NOT \
-R -o $VAR/cdimage \
-x $SRCDI/proc -x $VAR -x $ERRLOG \
-x $SRCDI/etc -x $SRCDI/var -x $SRCDI/tmp \
-x $SRCDI/dev -x $SRCDI/home -x $SRCDI/root $EXCLUDE \
/=$SRCDI/ /=$CHANGES \
/home.ro/=$SRCDI/home /root.ro/=$SRCDI/root /var.ro/=$SRCDI/var \
/etc.ro/=$SRCDI/etc $MKISODEVFS"
run mkisofs $(chng_opts "$MKISOFS_OPTS" "$MKISOFS_CHNG")
ignore "^palo version "
ignore "^ELF32 executable"
ignore "^ELF64 executable"
ignore "^ipl: addr "
ignore "^ ko 0x"
ignore "^<0/boot/vmlinux root=$CDDEV1 ramdisk_size=$RAMDISK_SIZE $APPEND>"
ignore "^<>$"
run palo -k $KERNEL \
-f /dev/null \
-b $SRCDI/usr/share/palo/iplboot \
-c \"0/boot/vmlinux root=$CDDEV1 ramdisk_size=$RAMDISK_SIZE $APPEND\" \
-C $VAR/cdimage
}
cdimage_compressed_hppa()
{
compress_dir
uncompress_files /usr/share/palo/iplboot $KERNEL $*
mkisofs_ignore
MKISOFS_OPTS="-z -R -o $VAR/cdimage $VAR/compressed_dir"
run mkisofs $(chng_opts "$MKISOFS_OPTS" "$MKISOFS_CHNG")
run rm -r $VAR/compressed_dir
ignore "^palo version "
ignore "^ELF32 executable"
ignore "^ELF64 executable"
ignore "^ipl: addr "
ignore "^ ko 0x"
ignore "^<0/boot/vmlinux root=$CDDEV1 ramdisk_size=$RAMDISK_SIZE $APPEND>"
ignore "^<>$"
run palo -k $KERNEL \
-f /dev/null \
-b $SRCDI/usr/share/palo/iplboot \
-c \"0/boot/vmlinux root=$CDDEV1 ramdisk_size=$RAMDISK_SIZE $APPEND\" \
-C $VAR/cdimage
}
check_hppa()
{
if [ "$BOOTFLOPPY" = "yes" ]; then
BOOTFLOPPY=no
warn 'BOOTFLOPPY is not supported with hppa.' \
'It will be treated as "no".'
fi
if [ "$DISPLAY" ]; then
DISPLAY=""
warn 'DISPLAY is not supported with hppa.' \
'It will not be used.'
fi
}
|