2011-02-07 21:30:21 -01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Do install stuff for armel, including making bootable CDs
|
|
|
|
# Works with debian-installer
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
#
|
|
|
|
# This is copied from the arm script and it is currently disabled as there
|
|
|
|
# doesn't seem to be any bootable armel machines.
|
|
|
|
|
|
|
|
. $BASEDIR/tools/boot/$CODENAME/common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
INSTALLDIR=$CDDIR/install
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
2011-03-03 13:33:07 -01:00
|
|
|
# DI_WWW_HOME="http://people.debian.org/~kmuto/d-i/images/daily"
|
2011-02-07 21:30:21 -01:00
|
|
|
if [ -n "$DI_DIR" ];then
|
|
|
|
DI_DIR="$DI_DIR/${DI_WWW_HOME#*http://}"
|
|
|
|
DI_WWW_HOME=""
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ ! "$DI_DIST" ]; then
|
|
|
|
DI_DIST="$DI_CODENAME"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
|
|
|
|
|
|
|
|
# Armel is currently not bootable in wheezy, so bail out here
|
|
|
|
echo "Armel booting disabled, check with Sledge/fjp/tbm"
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
# Only disk 1* bootable
|
|
|
|
if [ $N != 1 ] && [ $N != 1_NONUS ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $INSTALLDIR
|
|
|
|
|
|
|
|
# Netwinder currently disabled - fails to boot at the moment, as it's too big. SAM 2008/03/05
|
|
|
|
#for subarch in netwinder; do
|
|
|
|
# if [ ! "$DI_WWW_HOME" ];then
|
|
|
|
# if [ ! "$DI_DIR" ];then
|
|
|
|
# DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
|
|
|
# fi
|
|
|
|
# DI_DIR2="$DI_DIR/$subarch/cdrom"
|
|
|
|
# else
|
|
|
|
# DI_DIR2="di_stuff"
|
|
|
|
# wget -r -nd --no-parent --level=1 -P "$DI_DIR2" "$DI_WWW_HOME/$subarch/cdrom/"
|
|
|
|
# rm -f "$DI_DIR2"/index*
|
|
|
|
# fi
|
|
|
|
# cp -a "$DI_DIR2" "$subarch"
|
|
|
|
# rm -rf di_stuff
|
|
|
|
#done
|
|
|
|
|
|
|
|
exit 0
|