2009-02-15 21:42:47 -01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# boot-hppa
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
|
|
|
|
# palo is used to make ISOs bootable on HPPA.
|
|
|
|
|
|
|
|
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDROOT=$2
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
2009-04-07 23:31:03 +00:00
|
|
|
DI_WWW_HOME="http://d-i.debian.org/daily-images/hppa/daily/cdrom/2.6"
|
2013-12-16 13:05:35 -01:00
|
|
|
try_di_image_cache
|
2009-02-15 21:42:47 -01:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Only disk 1* bootable
|
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2013-05-06 22:26:50 +00:00
|
|
|
PALODEB=$(find_pkg_file palo)
|
|
|
|
if [ -z "$PALODEB" ] ; then
|
|
|
|
echo "ERROR: the palo package is required." >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
(dpkg --fsys-tarfile "$MIRROR/$PALODEB" | \
|
|
|
|
tar xf - -C . ./usr/share/palo/iplboot)
|
2009-02-15 21:42:47 -01:00
|
|
|
mv usr/share/palo/iplboot $CDROOT/install/iplboot
|
|
|
|
|
2013-05-06 22:26:50 +00:00
|
|
|
if [ -n "$ARCHIVE_EXTRACTED_SOURCES" ]; then
|
|
|
|
echo $PALODEB >> $CDDIR/../$N.pkgs_extracted
|
|
|
|
find_pkg_file palo source >> $CDDIR/../$N.pkgs_extracted
|
|
|
|
fi
|
|
|
|
|
2009-02-15 21:42:47 -01:00
|
|
|
if [ ! "$DI_WWW_HOME" ];then
|
|
|
|
if [ ! "$DI_DIR" ];then
|
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/cdrom/2.6"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
DI_DIR="di_stuff"
|
|
|
|
mkdir "$DI_DIR"
|
|
|
|
wget -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
|
|
|
|
fi
|
|
|
|
|
2014-04-08 17:44:36 +00:00
|
|
|
K32=$(basename "$DI_DIR"/vmlinux-*-parisc)
|
|
|
|
K64=$(basename "$DI_DIR"/vmlinux-*-parisc64*)
|
|
|
|
|
|
|
|
# palo >= 1.91 can load gzip-compressed Linux kernels
|
|
|
|
gzip -c "$DI_DIR"/$K32 > "$CDROOT/install"/$K32
|
|
|
|
gzip -c "$DI_DIR"/$K64 > "$CDROOT/install"/$K64
|
2009-02-15 21:42:47 -01:00
|
|
|
cp "$DI_DIR"/initrd.gz "$CDROOT/install"
|
|
|
|
|
|
|
|
install_languages "$CDROOT"
|
|
|
|
|
|
|
|
add_mkisofs_opt $CDROOT/../$1.mkisofs_opts "-hppa-cmdline '0/vmlinux initrd=0/ramdisk${KERNEL_PARAMS:+ $KERNEL_PARAMS}'"
|
2014-04-08 17:44:36 +00:00
|
|
|
add_mkisofs_opt $CDROOT/../$1.mkisofs_opts "-hppa-kernel-32 install/$K32"
|
|
|
|
add_mkisofs_opt $CDROOT/../$1.mkisofs_opts "-hppa-kernel-64 install/$K64"
|
2009-02-15 21:42:47 -01:00
|
|
|
add_mkisofs_opt $CDROOT/../$1.mkisofs_opts "-hppa-bootloader install/iplboot"
|
|
|
|
add_mkisofs_opt $CDROOT/../$1.mkisofs_opts "-hppa-ramdisk install/initrd.gz"
|
|
|
|
|
|
|
|
exit 0
|