2004-04-13 18:48:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Do install stuff for m68k, including making bootable CDs for bvme6000
|
|
|
|
# Works with debian-installer
|
|
|
|
#
|
|
|
|
# $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
|
2004-04-13 18:48:46 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
INSTALLDIR=$CDDIR/install
|
2004-08-11 02:24:52 +00:00
|
|
|
|
2004-04-13 18:48:46 +00:00
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
2004-08-31 16:17:35 +00:00
|
|
|
DI_WWW_HOME="http://people.debian.org/~smarenka/d-i/images-m68k/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-05-12 19:51:18 +00:00
|
|
|
elif [ "$DI_WWW_HOME" = "test" ];then
|
2004-08-31 16:17:35 +00:00
|
|
|
DI_WWW_HOME="http://people.debian.org/~smarenka/d-i/test/cd/"
|
2004-04-13 18:48:46 +00:00
|
|
|
fi
|
|
|
|
if [ ! "$DI_DIST" ]; then
|
|
|
|
DI_DIST="$DI_CODENAME"
|
|
|
|
fi
|
|
|
|
|
2004-05-12 19:51:18 +00:00
|
|
|
DI_BOOTLOADER="http://people.debian.org/~smarenka/d-i"
|
2004-04-13 18:48:46 +00:00
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
|
|
|
echo -n "--netatalk -J -hfs -probe -map $BASEDIR/data/hfs.map" \
|
|
|
|
> $N.mkisofs_opts
|
|
|
|
|
|
|
|
# Only disk 1 bootable
|
|
|
|
if [ $N != 1 ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2004-05-12 19:51:18 +00:00
|
|
|
echo "DI_WWW_HOME: $DI_WWW_HOME"
|
|
|
|
echo "DI_BOOTLOADER: $DI_BOOTLOADER"
|
2004-08-31 16:17:35 +00:00
|
|
|
echo "DI_DIR: $DI_DIR"
|
2004-05-12 19:51:18 +00:00
|
|
|
|
2004-04-13 18:48:46 +00:00
|
|
|
install_languages $CDDIR
|
|
|
|
|
|
|
|
# remove i386 stuff
|
|
|
|
rm -rf $CDDIR/tools
|
|
|
|
|
2004-05-28 18:05:05 +00:00
|
|
|
|
2004-04-13 18:48:46 +00:00
|
|
|
cd $INSTALLDIR
|
|
|
|
|
2004-05-12 19:51:18 +00:00
|
|
|
# This setup is designed to automatically use whatever subarchs are
|
|
|
|
# available to build the cd.
|
2004-04-13 18:48:46 +00:00
|
|
|
|
|
|
|
if [ ! "$DI_WWW_HOME" ];then
|
2004-08-31 16:17:35 +00:00
|
|
|
if [ ! $DI_DIR ]; then
|
2005-05-17 09:47:34 +00:00
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
2004-05-12 19:51:18 +00:00
|
|
|
fi
|
2004-08-31 16:17:35 +00:00
|
|
|
cp -a $DI_DIR/* .
|
2004-04-13 18:48:46 +00:00
|
|
|
else
|
2004-08-31 16:17:35 +00:00
|
|
|
wget -q -np -nH --cut-dirs=4 -r -l 3 -R '.gif,.log,stats.txt,index*' "$DI_WWW_HOME"
|
2004-04-13 18:48:46 +00:00
|
|
|
fi
|
|
|
|
|
2004-08-31 16:17:35 +00:00
|
|
|
SUBARCHS=`grep vmlinu MANIFEST | cut -d'-' -f3 | sort -u | awk '{printf "%s ", $1}'`
|
2004-05-12 19:51:18 +00:00
|
|
|
# grab unpackged stuff
|
2004-08-31 16:17:35 +00:00
|
|
|
if [ -d tools ]; then
|
|
|
|
cd tools
|
|
|
|
fi
|
2004-05-12 19:51:18 +00:00
|
|
|
for subarch in $SUBARCHS; do
|
|
|
|
TARF="bootloaders-$subarch.tar.bz2"
|
2004-08-31 16:17:35 +00:00
|
|
|
if `wget -q -O $TARF "$DI_BOOTLOADER/$TARF"` ; then
|
|
|
|
tar -xjf $TARF
|
2004-05-12 19:51:18 +00:00
|
|
|
fi
|
|
|
|
rm -f $TARF
|
|
|
|
done
|
|
|
|
|
2004-04-13 18:48:46 +00:00
|
|
|
|
2004-05-12 19:51:18 +00:00
|
|
|
# amiga specific stuff
|
|
|
|
if [ "" != "`echo $SUBARCHS | grep amiga`" ]; then
|
|
|
|
# Amiboot and dmesg need to be executable
|
|
|
|
chmod a+x amiga/amiboot-5.6
|
|
|
|
chmod a+x amiga/dmesg
|
|
|
|
|
|
|
|
# Setup amiga icons
|
|
|
|
cp amiga/amiga.info $CDDIR/install.info
|
2004-08-31 16:17:35 +00:00
|
|
|
if [ -d $INSTALLDIR/tools ]; then
|
|
|
|
cp amiga/amiga.info $INSTALLDIR/tools.info
|
|
|
|
fi
|
2004-05-12 19:51:18 +00:00
|
|
|
mv amiga/amiga.info .
|
|
|
|
fi
|
2004-04-13 18:48:46 +00:00
|
|
|
|
2004-08-31 16:17:35 +00:00
|
|
|
cd $INSTALLDIR
|
|
|
|
|
2004-05-28 18:05:05 +00:00
|
|
|
# bvme6000 specific stuff
|
|
|
|
if [ "" != "`echo $SUBARCHS | grep bvme6000`" ]; then
|
2004-08-31 16:17:35 +00:00
|
|
|
if [ -f bvme6000/cdrom-boot.img.gz ]; then
|
2004-10-20 12:03:11 +00:00
|
|
|
mkdir -p $CDDIR/boot1/boot
|
2004-08-31 16:17:35 +00:00
|
|
|
cp bvme6000/cdrom-boot.img.gz $CDDIR/boot1/boot/boot.bin
|
2004-10-20 12:03:11 +00:00
|
|
|
echo -n " -b boot/boot.bin -c boot/boot.catalog boot1" \
|
|
|
|
>> $N.mkisofs_opts
|
|
|
|
elif [ -f cdrom/bvme6000-boot.img.gz ]; then
|
|
|
|
mkdir -p $CDDIR/boot1/boot
|
2004-08-31 16:17:35 +00:00
|
|
|
cp cdrom/bvme6000-boot.img.gz $CDDIR/boot1/boot/boot.bin
|
2004-10-20 12:03:11 +00:00
|
|
|
echo -n " -b boot/boot.bin -c boot/boot.catalog boot1" \
|
|
|
|
>> $N.mkisofs_opts
|
|
|
|
else
|
|
|
|
echo "bvme6000 not bootable"
|
2004-08-31 16:17:35 +00:00
|
|
|
fi
|
2004-05-28 18:05:05 +00:00
|
|
|
fi
|
|
|
|
|
2004-04-13 18:48:46 +00:00
|
|
|
##-----------------------------< end of file >------------------------------##
|