2
# This file provides some common code that is intented to be called
3
# by the various boot-<arch> scripts.
6
# install_languages decompacts the language packs, you should give the path
7
# to the CD temporary tree.
8
# This function should be called for all bootable images.
10
# Param $1 is the CD directory
11
if [ -f "$MIRROR/dists/$DI_CODENAME/main/disks-$ARCH/current/xlp.tgz" ]
15
tar zxf $MIRROR/dists/$DI_CODENAME/main/disks-$ARCH/current/xlp.tgz )
22
DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu.seed'
25
DEFAULT_PRESEED='file=/cdrom/preseed/kubuntu.seed'
28
DEFAULT_PRESEED='file=/cdrom/preseed/kubuntu-plasma5.seed'
31
DEFAULT_PRESEED='file=/cdrom/preseed/edubuntu.seed'
34
DEFAULT_PRESEED='file=/cdrom/preseed/xubuntu.seed'
37
DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-server.seed'
40
DEFAULT_PRESEED='file=/cdrom/preseed/mid.seed'
43
DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-netbook.seed'
46
DEFAULT_PRESEED='file=/cdrom/preseed/jeos.seed'
49
DEFAULT_PRESEED='file=/cdrom/preseed/ubuntustudio.seed'
52
DEFAULT_PRESEED='file=/cdrom/preseed/mythbuntu.seed'
55
DEFAULT_PRESEED='file=/cdrom/preseed/lubuntu.seed'
58
DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-gnome.seed'
61
DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-mate.seed'
67
if [ "$CDIMAGE_INSTALL_BASE" = 1 ]; then
72
FRONTEND_BACKGROUND="FRONTEND_BACKGROUND=original"
73
DEFAULT_PRESEED="${DEFAULT_PRESEED:+$DEFAULT_PRESEED }$FRONTEND_BACKGROUND"
82
KERNEL_PARAMS="${KERNEL_PARAMS:+$KERNEL_PARAMS }locale=zh_CN keyboard-configuration/layoutcode?=cn"
89
BEGIN { %images = map { $_ => 1 } @ARGV; $found = 0; %abis = (); }
92
if (/^[^[:space:]]/) {
93
$found = exists $images{$_};
94
} elsif ($found and /^[[:space:]]+kernel-image-([^[:space:]]*)-di /) {
98
END { print for sort keys %abis; }' "$@" <MANIFEST.udebs
101
check_kernel_sync() {
102
[ "$CDIMAGE_INSTALL_BASE" = 1 ] || return 0
103
for abi in $(sed -n 's/^kernel-image-\([^ ]*\)-di .*/\1/p'); do
104
# If any parameters were passed, then they represent a list of ABI
105
# suffixes we're interested in.
106
if [ "$#" -gt 0 ]; then
116
if [ -z "$allowed" ]; then
120
if ! grep -q -- "-$abi-di\$" list; then
121
echo "debian-installer has kernel ABI $abi, but no corresponding udebs are on the CD!" >&2
128
if zcat -t "$1" >/dev/null 2>&1; then
130
elif bzcat -t "$1" >/dev/null 2>&1; then
132
# TODO: This only works if there is at least one dot in $1; fortunately
133
# this is currently always true.
134
elif lzcat -S ".${1##*.}" -t "$1" >/dev/null 2>&1; then
135
# .lzma would be more conventional, but we use .lz to avoid creating
136
# trouble for boot loaders that might need to read from 8.3
137
# filesystems without implementing support for long file names (e.g.
138
# syslinux on FAT USB sticks).
143
HUMANPROJECT="$(echo "$CAPPROJECT" | sed 's/-/ /g')"
145
# Add an option to the mkisofs options for this CD _only_ if it's not
146
# already set. $1 is the opts file location, "$2" is the new
147
# option. Call this with _logical groupings_ of options
152
if ! ( grep -q -- "$NEW_OPT" $OPTS_FILE 2>/dev/null) ; then
153
echo -n "$NEW_OPT " >> $OPTS_FILE