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-netbook.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/moblin-remix.seed'
61
if [ "$CDIMAGE_INSTALL_BASE" = 1 ]; then
66
DEFAULT_PRESEED="${DEFAULT_PRESEED:+$DEFAULT_PRESEED }FRONTEND_BACKGROUND=original"
74
BEGIN { %images = map { $_ => 1 } @ARGV; $found = 0; %abis = (); }
77
if (/^[^[:space:]]/) {
78
$found = exists $images{$_};
79
} elsif ($found and /^[[:space:]]+kernel-image-([^[:space:]]*)-di /) {
83
END { print for sort keys %abis; }' "$@" <MANIFEST.udebs
87
[ "$CDIMAGE_INSTALL_BASE" = 1 ] || return 0
88
for abi in $(sed -n 's/^kernel-image-\([^ ]*\)-di .*/\1/p'); do
89
# If any parameters were passed, then they represent a list of ABI
90
# suffixes we're interested in.
91
if [ "$#" -gt 0 ]; then
101
if [ -z "$allowed" ]; then
105
if ! grep -q -- "-$abi-di\$" list; then
106
echo "debian-installer has kernel ABI $abi, but no corresponding udebs are on the CD!" >&2
113
if zcat -t "$1" >/dev/null 2>&1; then
115
elif bzcat -t "$1" >/dev/null 2>&1; then
117
elif lzcat -S '' -t "$1" >/dev/null 2>&1; then
118
# .lzma would be more conventional, but we use .lz to avoid creating
119
# trouble for boot loaders that might need to read from 8.3
120
# filesystems without implementing support for long file names (e.g.
121
# syslinux on FAT USB sticks).
126
HUMANPROJECT="$(echo "$CAPPROJECT" | sed 's/-/ /g')"