2003-03-14 20:52:28 -01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2004-07-06 16:02:17 +00:00
|
|
|
# Do install stuff for arm, including making bootable CDs
|
|
|
|
# Works with debian-installer
|
2003-03-14 20:52:28 -01:00
|
|
|
#
|
2004-07-06 16:02:17 +00:00
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
2003-03-14 20:52:28 -01:00
|
|
|
#
|
2004-07-06 16:02:17 +00:00
|
|
|
# According to Vince Sanders, most subarchitectures (with the notable
|
|
|
|
# exception of real netwinders; note that 'netwinder' actually supports
|
|
|
|
# other machines too) have CD-ROM drives, and can boot from them given a
|
|
|
|
# kernel and an initrd. The bootloader is in NOR flash memory.
|
2003-03-14 20:52:28 -01:00
|
|
|
|
2004-07-06 16:02:17 +00:00
|
|
|
. $BASEDIR/tools/boot/$CODENAME/common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
INSTALLDIR=$CDDIR/install
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
2005-02-17 06:46:30 -01:00
|
|
|
DI_WWW_HOME="http://people.debian.org/~kmuto/d-i/images/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-07-06 16:02:17 +00:00
|
|
|
fi
|
|
|
|
if [ ! "$DI_DIST" ]; then
|
|
|
|
DI_DIST="$DI_CODENAME"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
2003-03-14 20:52:28 -01:00
|
|
|
|
2004-07-06 16:02:17 +00:00
|
|
|
echo -J > $N.mkisofs_opts
|
|
|
|
|
|
|
|
# Only disk 1* bootable
|
|
|
|
if [ $N != 1 ] && [ $N != 1_NONUS ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $INSTALLDIR
|
|
|
|
|
|
|
|
for subarch in bast netwinder riscpc riscstation; do
|
|
|
|
if [ ! "$DI_WWW_HOME" ];then
|
2005-05-17 09:47:34 +00:00
|
|
|
if [ ! "$DI_DIR" ];then
|
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
|
|
|
fi
|
|
|
|
DI_DIR2="$DI_DIR/$subarch/cdrom"
|
2004-07-06 16:02:17 +00:00
|
|
|
else
|
2005-05-17 09:47:34 +00:00
|
|
|
DI_DIR2="di_stuff"
|
|
|
|
wget -r -nd --no-parent --level=1 -P "$DI_DIR2" "$DI_WWW_HOME/$subarch/cdrom/"
|
|
|
|
rm -f "$DI_DIR2"/index*
|
2004-07-06 16:02:17 +00:00
|
|
|
fi
|
2005-05-17 09:47:34 +00:00
|
|
|
cp -a "$DI_DIR2" "$subarch"
|
2004-07-06 16:02:17 +00:00
|
|
|
rm -rf di_stuff
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|