debian-cd-clone/tools/boot/woody/boot-ia64

34 lines
784 B
Plaintext
Raw Normal View History

2001-08-29 17:18:31 +00:00
#!/bin/bash
#
# boot-ia64
#
# $1 is the CD number
# $2 is the temporary CD build dir
set -e
N=$1
CDDIR=$2
BOOTDIR=
cd $CDDIR/..
# 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
mkdir -p boot$N/boot
cp -f CD1/dists/$CODENAME/main/disks-$ARCH/current/images-1.44/rescue.bin boot$N/boot/
echo -n "-no-emul-boot -J -b boot/rescue.bin -c boot/boot.catalog boot$N" > $N.mkisofs_opts
# populate the install directory as well, with symlinks to save space
# rescue.bin is 10MB on ia64
(cd CD1/install; \
ln -s ../dists/$CODENAME/main/disks-$ARCH/current/images-1.44/rescue.bin . ; \
ln -s ../dists/$CODENAME/main/disks-$ARCH/current/linux . ; \
ln -s ../dists/$CODENAME/main/disks-$ARCH/current/root.bin . )
2001-08-29 17:18:31 +00:00
# th,th, thats all