2001-08-29 17:18:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# boot-ia64
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
|
2002-03-25 09:03:53 -01:00
|
|
|
. $BASEDIR/tools/boot/$CODENAME/common.sh
|
|
|
|
|
2001-08-29 17:18:31 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
BOOTDIR=
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
2001-11-13 08:31:21 -01:00
|
|
|
# Only disc 1 bootable
|
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
|
|
|
echo "-J" > $N.mkisofs_opts
|
|
|
|
exit 0;
|
|
|
|
fi
|
2001-08-29 17:18:31 +00:00
|
|
|
|
2002-03-25 09:03:53 -01:00
|
|
|
install_languages $CDDIR
|
|
|
|
|
2001-08-29 17:18:31 +00:00
|
|
|
mkdir -p boot$N/boot
|
2002-04-23 14:50:29 +00:00
|
|
|
cp -f $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/images-1.44/rescue.bin boot$N/boot/
|
2001-08-29 17:18:31 +00:00
|
|
|
echo -n "-no-emul-boot -J -b boot/rescue.bin -c boot/boot.catalog boot$N" > $N.mkisofs_opts
|
|
|
|
|
2002-04-23 14:50:29 +00:00
|
|
|
# populate the install directory as well, with links to save space
|
2001-11-13 08:31:21 -01:00
|
|
|
# rescue.bin is 10MB on ia64
|
2002-04-23 14:50:29 +00:00
|
|
|
(cd $CDDIR/install; \
|
|
|
|
cp -lf ../dists/$CODENAME/main/disks-$ARCH/current/images-1.44/rescue.bin . ; \
|
|
|
|
cp -lf ../dists/$CODENAME/main/disks-$ARCH/current/linux.bin . ; \
|
|
|
|
cp -lf ../dists/$CODENAME/main/disks-$ARCH/current/root.bin . )
|
2001-08-29 17:18:31 +00:00
|
|
|
|
|
|
|
# th,th, thats all
|