2003-10-08 21:40:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# boot-ia64
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
|
|
|
|
. $BASEDIR/tools/boot/$CODENAME/common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
BOOTDIR=
|
2004-04-14 10:44:46 +00:00
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
|
|
|
DI_WWW_HOME="http://people.debian.org/~jbailey/d-i/ia64/daily"
|
|
|
|
fi
|
|
|
|
if [ ! "$DI_DIST" ]; then
|
|
|
|
DI_DIST="$DI_CODENAME"
|
2003-11-13 16:33:50 -01:00
|
|
|
fi
|
2003-10-08 21:40:15 +00:00
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
|
|
|
# Only disc 1 bootable
|
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
|
|
|
echo "-J" > $N.mkisofs_opts
|
|
|
|
exit 0;
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Download boot images
|
2004-04-14 10:44:46 +00:00
|
|
|
for image in boot.img; do
|
2003-10-08 21:40:15 +00:00
|
|
|
if [ ! -e "$image" ]; then
|
2004-04-14 10:44:46 +00:00
|
|
|
if [ ! "$DI_WWW_HOME" ];then
|
|
|
|
cp "$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/$image" .
|
|
|
|
else
|
|
|
|
wget "$DI_WWW_HOME/$image"
|
|
|
|
fi
|
2003-10-08 21:40:15 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2004-04-14 10:44:46 +00:00
|
|
|
install_languages $CDDIR
|
2003-10-08 21:40:15 +00:00
|
|
|
|
|
|
|
mkdir -p boot$N/boot
|
2004-04-14 10:44:46 +00:00
|
|
|
cp -f boot.img boot$N/boot/
|
|
|
|
echo -n "-no-emul-boot -J -b boot/boot.img -c boot/boot.catalog boot$N" > $N.mkisofs_opts
|
2003-10-08 21:40:15 +00:00
|
|
|
|
|
|
|
# done
|
|
|
|
|