6
# $2 is the temporary CD build dir
8
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
16
if [ "$DI_WWW_HOME" = "default" ];then
17
DI_WWW_HOME="http://people.debian.org/~jbailey/d-i/ia64/daily"
19
if [ ! "$DI_DIST" ]; then
20
export DI_DIST="$DI_CODENAME"
22
if [ -z "$DI_PATH" ]; then
23
DI_PATH="$($BASEDIR/tools/find-newest-installer)"
26
# TODO: finish support for this
31
# Only disc 1 bootable
32
if [ $N != 1 ] && [ $N != 1_NONUS ] && [ -z "$CDIMAGE_ADDON" ]; then
33
echo "-J" > $N.mkisofs_opts
37
# Download boot images
38
for image in udeb.list boot.img; do
39
if [ ! -e "$image" ]; then
40
if [ ! "$DI_WWW_HOME" ];then
41
cp "$DI_PATH/current/images/cdrom/$image" . || \
42
cp "$DI_PATH/current/images/$image" .
43
cp "$DI_PATH/current/images/cdrom/debian-cd_info.tar.gz" . || true
45
wget "$DI_WWW_HOME/cdrom/$image" || \
46
wget "$DI_WWW_HOME/$image"
47
wget "$DI_WWW_HOME/cdrom/debian-cd_info.tar.gz" || true
51
# TODO: copy casper's kernel and initrd into boot.img if present
53
check_kernel_sync udeb.list
55
install_languages $CDDIR
57
if [ -f debian-cd_info.tar.gz ]; then
59
cat debian-cd_info.tar.gz | (cd elilo/; tar zx)
63
cp -f boot.img boot$N/boot/
64
echo -n "-no-emul-boot -J -b boot/boot.img -c boot/boot.catalog boot$N" > $N.mkisofs_opts
66
if [ "$CDIMAGE_INSTALL" = 1 ]; then
71
for file in elilo/*.live; do
72
target="$(basename "$file")"
73
target="${target%.live}"
74
mdel -i boot$N/boot/boot.img "::/efi/boot/$target" || true
75
mcopy -i boot$N/boot/boot.img "$file" "::/efi/boot/$target"
79
mdel -i boot$N/boot/boot.img ::/elilo.conf ::/efi/boot/elilo.conf
80
mcopy -i boot$N/boot/boot.img \
81
$BASEDIR/data/$CODENAME/elilo/elilo.conf$ELILO_SUFFIX \
83
mcopy -i boot$N/boot/boot.img \
84
$BASEDIR/data/$CODENAME/elilo/elilo.conf$ELILO_SUFFIX \
85
::/efi/boot/elilo.conf