2004-03-16 08:56:58 -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.
|
|
|
|
|
2004-07-11 09:34:59 +00:00
|
|
|
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
2004-03-16 08:56:58 -01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDROOT=$2
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
2005-01-16 03:35:22 -01:00
|
|
|
DI_WWW_HOME="http://people.debian.org/~jbailey/d-i/hppa/daily/cdrom/2.6"
|
2004-04-14 10:44:46 +00:00
|
|
|
fi
|
|
|
|
if [ ! "$DI_DIST" ]; then
|
|
|
|
DI_DIST="$DI_CODENAME"
|
2004-03-16 08:56:58 -01:00
|
|
|
fi
|
|
|
|
|
|
|
|
:> $1.mkisofs_opts
|
|
|
|
|
|
|
|
# Only disk 1* bootable
|
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2004-04-14 10:44:46 +00:00
|
|
|
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
|
|
|
|
|
2004-03-16 08:56:58 -01:00
|
|
|
if [ ! "$DI_WWW_HOME" ];then
|
2005-01-16 03:35:22 -01:00
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/cdrom/2.6"
|
2004-03-16 08:56:58 -01:00
|
|
|
else
|
2004-04-14 10:44:46 +00:00
|
|
|
DI_DIR="di_stuff"
|
|
|
|
mkdir "$DI_DIR"
|
|
|
|
wget -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
|
2004-03-16 08:56:58 -01:00
|
|
|
fi
|
2005-01-16 03:35:22 -01:00
|
|
|
|
2004-04-14 10:44:46 +00:00
|
|
|
cp "$DI_DIR"/vmlinux-*-32 "$CDROOT/install"
|
|
|
|
cp "$DI_DIR"/vmlinux-*-64 "$CDROOT/install"
|
|
|
|
cp "$DI_DIR"/initrd.gz "$CDROOT/install"
|
|
|
|
|
|
|
|
install_languages "$CDROOT"
|
2004-03-16 08:56:58 -01:00
|
|
|
|
|
|
|
exit 0
|