~tsimonq2/debian-cd/lubuntu-cosmic-changes

« back to all changes in this revision

Viewing changes to tools/boot/jaunty/boot-ia64

  • Committer: Colin Watson
  • Date: 2008-10-31 12:33:26 UTC
  • Revision ID: cjwatson@canonical.com-20081031123326-lati74gj8qvgw4b6
add CONF.sh bits for jaunty; copy intrepid -> jaunty elsewhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
# boot-ia64
 
4
#
 
5
# $1 is the CD number
 
6
# $2 is the temporary CD build dir
 
7
 
 
8
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
 
9
 
 
10
set -e
 
11
set -x
 
12
 
 
13
N=$1
 
14
CDDIR=$2
 
15
BOOTDIR=
 
16
if [ "$DI_WWW_HOME" = "default" ];then
 
17
   DI_WWW_HOME="http://people.debian.org/~jbailey/d-i/ia64/daily"
 
18
fi
 
19
if [ ! "$DI_DIST" ]; then
 
20
   export DI_DIST="$DI_CODENAME"
 
21
fi
 
22
if [ -z "$DI_PATH" ]; then
 
23
   DI_PATH="$($BASEDIR/tools/find-newest-installer)"
 
24
fi
 
25
 
 
26
# TODO: finish support for this
 
27
default_preseed
 
28
 
 
29
cd $CDDIR/..
 
30
 
 
31
# Only disc 1 bootable
 
32
if [ $N != 1 ] && [ $N != 1_NONUS ] && [ -z "$CDIMAGE_ADDON" ]; then 
 
33
        echo "-J" > $N.mkisofs_opts
 
34
        exit 0; 
 
35
fi
 
36
 
 
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
 
44
        else
 
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
 
48
        fi
 
49
    fi
 
50
done
 
51
# TODO: copy casper's kernel and initrd into boot.img if present
 
52
 
 
53
check_kernel_sync udeb.list
 
54
 
 
55
install_languages $CDDIR
 
56
 
 
57
if [ -f debian-cd_info.tar.gz ]; then
 
58
    mkdir -p elilo
 
59
    cat debian-cd_info.tar.gz | (cd elilo/; tar zx)
 
60
fi
 
61
 
 
62
mkdir -p boot$N/boot
 
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
 
65
 
 
66
if [ "$CDIMAGE_INSTALL" = 1 ]; then
 
67
    ELILO_SUFFIX=
 
68
else
 
69
    ELILO_SUFFIX=.live
 
70
    if [ -d elilo ]; 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"
 
76
        done
 
77
    fi
 
78
fi
 
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 \
 
82
    ::/elilo.conf
 
83
mcopy -i boot$N/boot/boot.img \
 
84
    $BASEDIR/data/$CODENAME/elilo/elilo.conf$ELILO_SUFFIX \
 
85
    ::/efi/boot/elilo.conf
 
86
 
 
87
# done
 
88