2003-10-08 21:40:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# boot-ia64
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
|
2004-07-11 09:34:59 +00:00
|
|
|
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
2003-10-08 21:40:15 +00:00
|
|
|
|
|
|
|
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"
|
2005-05-17 09:47:34 +00:00
|
|
|
if [ -n "$DI_DIR" ];then
|
|
|
|
DI_DIR="$DI_DIR/~${DI_WWW_HOME#*~}"
|
|
|
|
DI_WWW_HOME=""
|
|
|
|
fi
|
2004-04-14 10:44:46 +00:00
|
|
|
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
|
2005-05-17 09:47:34 +00:00
|
|
|
if [ ! "$DI_DIR" ];then
|
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
|
|
|
fi
|
|
|
|
cp "$DI_DIR/cdrom/$image" . || \
|
|
|
|
cp "$DI_DIR/$image" .
|
2004-04-14 10:44:46 +00:00
|
|
|
else
|
2004-09-10 12:21:19 +00:00
|
|
|
wget "$DI_WWW_HOME/cdrom/$image" || \
|
|
|
|
wget "$DI_WWW_HOME/$image"
|
2004-04-14 10:44:46 +00:00
|
|
|
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
|
|
|
|
|