1
# This file provides some common code that is intented to be called
2
# by the various boot-<arch> scripts.
5
# Expand %ARCH% variable in envvars for location of D-I images
6
DI_WWW_HOME="$(echo "$DI_WWW_HOME" | sed -e 's|%ARCH%|$ARCH|g')"
7
DI_DIR="$(echo "$DI_DIR" | sed -e 's|%ARCH%|$ARCH|g')"
10
# install_languages decompacts the language packs, you should give the path
11
# to the CD temporary tree.
12
# This function should be called for all bootable images.
14
# Param $1 is the CD directory
15
if [ -f "$MIRROR/dists/$DI_CODENAME/main/disks-$ARCH/current/xlp.tgz" ]
19
tar zxf $MIRROR/dists/$DI_CODENAME/main/disks-$ARCH/current/xlp.tgz )
23
# Add an option to the mkisofs options for this CD _only_ if it's not
24
# already set. $1 is the opts file location, "$2" is the new
25
# option. Call this with _logical groupings_ of options
30
if ! ( grep -q -- "$NEW_OPT" $OPTS_FILE 2>/dev/null) ; then
31
echo -n "$NEW_OPT " >> $OPTS_FILE