2015-04-27 16:14:26 +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
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
2017-05-03 17:02:29 +00:00
|
|
|
INSTALLDIR="install"
|
|
|
|
|
|
|
|
# Common options for all disks
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-l"
|
|
|
|
|
|
|
|
# Exit if this is not CD#1/DVD#1
|
|
|
|
if [ $N != "1" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ]; then
|
2016-01-02 23:37:39 -01:00
|
|
|
DI_WWW_HOME="https://d-i.debian.org/daily-images/ia64/daily"
|
2015-04-27 16:14:26 +00:00
|
|
|
try_di_image_cache
|
2017-05-03 17:02:29 +00:00
|
|
|
else
|
|
|
|
DI_WWW_HOME=$(echo $DI_WWW_HOME | sed "s,%ARCH%,$ARCH,")
|
2015-04-27 16:14:26 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
|
|
|
# Download boot images
|
|
|
|
for image in boot.img; do
|
|
|
|
if [ ! -e "$image" ]; then
|
|
|
|
if [ ! "$DI_WWW_HOME" ];then
|
|
|
|
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" .
|
|
|
|
else
|
2016-01-03 11:54:46 -01:00
|
|
|
$WGET "$DI_WWW_HOME/cdrom/$image" || \
|
|
|
|
$WGET "$DI_WWW_HOME/$image"
|
2015-04-27 16:14:26 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p boot$N/boot
|
|
|
|
cp -f boot.img boot$N/boot/
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b boot/boot.img"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c boot/boot.catalog"
|
|
|
|
|
|
|
|
bls=$(calc_boot_size "boot$N/boot/boot.img")
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-boot-load-size $bls"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
|
|
|
|
|
|
|
|
# done
|
|
|
|
|