2005-05-05 16:15:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# boot-ia64
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
|
|
|
|
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
BOOTDIR=
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
|
|
|
DI_WWW_HOME="http://people.debian.org/~jbailey/d-i/ia64/daily"
|
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
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
|
|
|
# Only disc 1 bootable
|
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
2006-11-27 01:15:29 -01:00
|
|
|
add_mkisofs_opt $N.mkisofs_opts "-J"
|
2005-05-05 16:15:44 +00:00
|
|
|
exit 0;
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Download boot images
|
|
|
|
for image in boot.img; do
|
|
|
|
if [ ! -e "$image" ]; then
|
|
|
|
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"
|
|
|
|
fi
|
|
|
|
cp "$DI_DIR/cdrom/$image" . || \
|
|
|
|
cp "$DI_DIR/$image" .
|
2005-05-05 16:15:44 +00:00
|
|
|
else
|
|
|
|
wget "$DI_WWW_HOME/cdrom/$image" || \
|
|
|
|
wget "$DI_WWW_HOME/$image"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
install_languages $CDDIR
|
|
|
|
|
|
|
|
mkdir -p boot$N/boot
|
|
|
|
cp -f boot.img boot$N/boot/
|
2006-11-27 01:15:29 -01:00
|
|
|
|
|
|
|
add_mkisofs_opt $N.mkisofs_opts "-J"
|
|
|
|
add_mkisofs_opt $N.mkisofs_opts "-no-emul-boot"
|
|
|
|
add_mkisofs_opt $N.mkisofs_opts "-b boot/boot.img"
|
|
|
|
add_mkisofs_opt $N.mkisofs_opts "-c boot/boot.catalog"
|
|
|
|
|
|
|
|
add_mkisofs_opt $N.mkisofs_dirs "boot$N"
|
2005-05-05 16:15:44 +00:00
|
|
|
|
|
|
|
# done
|
|
|
|
|