Add bootable CD support for arm, following Vince Sanders' advice.

This commit is contained in:
Colin Watson 2004-07-06 16:02:17 +00:00
parent f4db02836f
commit 26180c00ea
2 changed files with 48 additions and 10 deletions

1
debian/changelog vendored
View File

@ -103,6 +103,7 @@ debian-cd (2.2.18) UNRELEASED; urgency=low
* Colin Watson * Colin Watson
- Add exclude-udebs-powerpc list with packages already in the initrd, - Add exclude-udebs-powerpc list with packages already in the initrd,
along the same lines as exclude-udebs-i386. Saves about 11 megabytes. along the same lines as exclude-udebs-i386. Saves about 11 megabytes.
- Add bootable CD support for arm, following Vince Sanders' advice.
-- Raphael Hertzog <hertzog@debian.org> Thu, 25 Mar 2004 07:33:23 +0100 -- Raphael Hertzog <hertzog@debian.org> Thu, 25 Mar 2004 07:33:23 +0100

View File

@ -1,14 +1,51 @@
#!/bin/sh #!/bin/sh
#
# Do install stuff for arm, including making bootable CDs
# Works with debian-installer
#
# $1 is the CD number
# $2 is the temporary CD build dir
#
# 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.
# Nothing has to be done since the supported ARM computers are computers . $BASEDIR/tools/boot/$CODENAME/common.sh
# without CDROM and so they don't need to be able to boot from CD ...
# set -e
# The CDs may only be useful to provide the packages via the network.
# N=$1
# This file must however exist so that debian-cd doesn't complain about CDDIR=$2
# lack of "bootable" support. INSTALLDIR=$CDDIR/install
# if [ "$DI_WWW_HOME" = "default" ];then
# -- Raphaël Hertzog DI_WWW_HOME="http://people.debian.org/~vince/d-i/images/daily"
fi
if [ ! "$DI_DIST" ]; then
DI_DIST="$DI_CODENAME"
fi
cd $CDDIR/..
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
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/$subarch/cdrom"
else
DI_DIR="di_stuff"
wget -r -nd --no-parent --level=1 -P "$DI_DIR" "$DI_WWW_HOME/$subarch/cdrom/"
rm -f "$DI_DIR"/index*
fi
cp -a "$DI_DIR" "$subarch"
rm -rf di_stuff
done
exit 0 exit 0