2015-04-27 16:14:26 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2017-05-03 17:02:29 +00:00
|
|
|
# Do common install stuff for armel/armhf, including making bootable CDs
|
2015-04-27 16:14:26 +00:00
|
|
|
# Works with debian-installer
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
#
|
|
|
|
# This is copied from the old arm script and it is currently disabled as there
|
2017-05-03 17:02:29 +00:00
|
|
|
# don't seem to be any CD-bootable armel/armhf machines.
|
2015-04-27 16:14:26 +00:00
|
|
|
|
2017-05-03 17:02:29 +00:00
|
|
|
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
2015-04-27 16:14:26 +00:00
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
2015-08-27 13:27:49 +00:00
|
|
|
INSTALLDIR="install"
|
2017-05-03 17:02:29 +00:00
|
|
|
|
|
|
|
# Common options for all disks
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-l"
|
|
|
|
|
|
|
|
# Exit if this is not CD#1/DVD#1
|
|
|
|
if [ $N != "1" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ]; then
|
|
|
|
# Tempting as it might be to merge these definitions using $ARCH,
|
|
|
|
# do *not* do that - these defs are parsed out by other scripts
|
|
|
|
# that won't cope with that
|
2015-04-27 16:14:26 +00:00
|
|
|
if [ "$ARCH" = armel ]; then
|
2016-01-02 23:37:39 -01:00
|
|
|
DI_WWW_HOME="https://d-i.debian.org/daily-images/armel/daily"
|
2015-04-27 16:14:26 +00:00
|
|
|
elif [ "$ARCH" = armhf ]; then
|
2016-01-02 23:37:39 -01:00
|
|
|
DI_WWW_HOME="https://d-i.debian.org/daily-images/armhf/daily"
|
2015-04-27 16:14:26 +00:00
|
|
|
else
|
|
|
|
echo "$0: unknown arch $ARCH; abort"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
try_di_image_cache
|
2017-05-03 17:02:29 +00:00
|
|
|
else
|
|
|
|
DI_WWW_HOME=$(echo $DI_WWW_HOME | sed "s,%ARCH%,$ARCH,")
|
2015-04-27 16:14:26 +00:00
|
|
|
fi
|
|
|
|
|
2017-05-03 09:51:13 +00:00
|
|
|
# This arch is currently not bootable directly from CD, and there's
|
2015-08-27 13:27:49 +00:00
|
|
|
# not a lot we can do about that. But add the needed files in the
|
2017-05-03 09:51:13 +00:00
|
|
|
# right place so that users can find them, at least
|
|
|
|
copy_arch_images
|