2005-05-05 16:15:44 +00: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
|
2006-02-15 21:20:09 -01:00
|
|
|
DI_WWW_HOME="http://people.debian.org/~kyle/d-i/hppa/daily/cdrom/2.6"
|
2005-05-17 16:08:15 +00:00
|
|
|
if [ -n "$DI_DIR" ];then
|
|
|
|
DI_DIR="$DI_DIR/~${DI_WWW_HOME#*~}"
|
|
|
|
DI_WWW_HOME=""
|
|
|
|
fi
|
2005-05-05 16:15:44 +00:00
|
|
|
fi
|
|
|
|
if [ ! "$DI_DIST" ]; then
|
|
|
|
DI_DIST="$DI_CODENAME"
|
|
|
|
fi
|
|
|
|
|
|
|
|
:> $1.mkisofs_opts
|
|
|
|
|
|
|
|
# Only disk 1* bootable
|
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
PALODEB="$($BASEDIR/tools/apt-selection cache show palo | \
|
|
|
|
sed -n 's/^Filename: \(.*_hppa.deb\)$/\1/p')"
|
|
|
|
ar p "${MIRROR}/${PALODEB}" data.tar.gz | tar xz ./usr/share/palo/iplboot
|
|
|
|
mv usr/share/palo/iplboot $CDROOT/install/iplboot
|
|
|
|
|
|
|
|
if [ ! "$DI_WWW_HOME" ];then
|
2005-05-17 16:08:15 +00:00
|
|
|
if [ ! "$DI_DIR" ];then
|
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/cdrom/2.6"
|
|
|
|
fi
|
2005-05-05 16:15:44 +00:00
|
|
|
else
|
|
|
|
DI_DIR="di_stuff"
|
|
|
|
mkdir "$DI_DIR"
|
|
|
|
wget -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
|
|
|
|
fi
|
|
|
|
|
2005-09-29 08:01:49 +00:00
|
|
|
cp "$DI_DIR"/vmlinux-*-parisc "$CDROOT/install"
|
|
|
|
cp "$DI_DIR"/vmlinux-*-parisc64 "$CDROOT/install"
|
2005-05-05 16:15:44 +00:00
|
|
|
cp "$DI_DIR"/initrd.gz "$CDROOT/install"
|
|
|
|
|
|
|
|
install_languages "$CDROOT"
|
|
|
|
|
2005-12-08 00:33:17 -01:00
|
|
|
K32=$(ls $CDROOT/install/vmlinux-*-parisc|head -1 | sed 's?^.*/install/?install/?g')
|
|
|
|
K64=$(ls $CDROOT/install/vmlinux-*-parisc64|head -1 | sed 's?^.*/install/?install/?g')
|
2005-12-06 23:08:57 -01:00
|
|
|
|
2006-10-22 22:42:44 +00:00
|
|
|
echo " -hppa-cmdline '0/vmlinux,initrd=0/ramdisk'" >> $1.mkisofs_opts
|
2005-12-06 23:08:57 -01:00
|
|
|
echo " -hppa-kernel-32 $K32" >> $1.mkisofs_opts
|
|
|
|
echo " -hppa-kernel-64 $K64" >> $1.mkisofs_opts
|
|
|
|
echo " -hppa-bootloader install/iplboot" >> $1.mkisofs_opts
|
|
|
|
echo " -hppa-ramdisk install/initrd.gz" >> $1.mkisofs_opts
|
|
|
|
|
2005-05-05 16:15:44 +00:00
|
|
|
exit 0
|