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

« back to all changes in this revision

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

  • 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-hppa
 
4
#
 
5
# $1 is the CD number
 
6
# $2 is the temporary CD build dir
 
7
 
 
8
# palo is used to make ISOs bootable on HPPA.
 
9
 
 
10
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
 
11
 
 
12
set -e
 
13
 
 
14
N=$1
 
15
CDROOT=$2
 
16
if [ "$DI_WWW_HOME" = "default" ];then
 
17
   DI_WWW_HOME="http://people.debian.org/~jbailey/d-i/hppa/daily/cdrom/2.6"
 
18
fi
 
19
if [ ! "$DI_DIST" ]; then
 
20
   DI_DIST="$DI_CODENAME"
 
21
fi
 
22
if [ -z "$DI_PATH" ]; then
 
23
   DI_PATH="$($BASEDIR/tools/find-newest-installer)"
 
24
fi
 
25
 
 
26
default_preseed
 
27
 
 
28
:> $1.mkisofs_opts
 
29
 
 
30
"$BASEDIR/tools/sorting_weights" "$N"
 
31
echo -n "-sort $(pwd)/$N.weights " >> $N.mkisofs_opts
 
32
 
 
33
# Only disk 1* bootable
 
34
if [ $N != 1 ] && [ $N != 1_NONUS ] && [ -z "$CDIMAGE_ADDON" ]; then
 
35
        exit 0
 
36
fi
 
37
 
 
38
PALODEB="$($BASEDIR/tools/apt-selection cache show palo | \
 
39
        sed -n 's/^Filename: \(.*_hppa.deb\)$/\1/p')"
 
40
ar p "${MIRROR}/${PALODEB}" data.tar.gz | tar xz ./usr/share/palo/iplboot
 
41
mv usr/share/palo/iplboot $CDROOT/install/iplboot
 
42
 
 
43
if [ ! "$DI_WWW_HOME" ];then
 
44
        DI_DIR="$DI_PATH/current/images/cdrom/2.6"
 
45
else
 
46
        DI_DIR="di_stuff"
 
47
        mkdir "$DI_DIR"
 
48
        wget -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
 
49
fi
 
50
 
 
51
check_kernel_sync "$DI_DIR/udeb.list"
 
52
 
 
53
if [ "$CDIMAGE_INSTALL_BASE" = 1 ]; then
 
54
        cp "$DI_DIR"/vmlinux-*-hppa32 "$CDROOT/install/vmlinux-hppa32"
 
55
        cp "$DI_DIR"/vmlinux-*-hppa64 "$CDROOT/install/vmlinux-hppa64"
 
56
        cp "$DI_DIR"/initrd.gz "$CDROOT/install"
 
57
        KERNEL32=install/vmlinux-hppa32
 
58
        KERNEL64=install/vmlinux-hppa64
 
59
        RAMDISK=install/initrd.gz
 
60
else
 
61
        mv "$CDROOT/casper/filesystem.kernel-hppa32" "$CDROOT/casper/vmlinux-hppa32"
 
62
        mv "$CDROOT/casper/filesystem.kernel-hppa64" "$CDROOT/casper/vmlinux-hppa64"
 
63
        KERNEL32=casper/vmlinux-hppa32
 
64
        KERNEL64=casper/vmlinux-hppa64
 
65
        # TODO: we're screwed here, because mkisofs only supports one
 
66
        # ramdisk. Pick hppa32 arbitrarily for now.
 
67
        mv "$CDROOT/casper/filesystem.initrd-hppa32" "$CDROOT/casper/initrd.gz"
 
68
        RAMDISK=casper/initrd.gz
 
69
fi
 
70
 
 
71
install_languages "$CDROOT"
 
72
 
 
73
if [ "$CDIMAGE_LIVE" = 1 ]; then
 
74
    EXTRA_ARGS='boot=casper,splash'
 
75
else
 
76
    EXTRA_ARGS=
 
77
fi
 
78
 
 
79
echo " -hppa-cmdline 0/vmlinux,${DEFAULT_PRESEED:+$DEFAULT_PRESEED,}${EXTRA_ARGS:+$EXTRA_ARGS,}initrd=0/ramdisk" >> $1.mkisofs_opts
 
80
echo " -hppa-kernel-32 $KERNEL32" >> $1.mkisofs_opts
 
81
echo " -hppa-kernel-64 $KERNEL64" >> $1.mkisofs_opts
 
82
echo " -hppa-bootloader install/iplboot" >> $1.mkisofs_opts
 
83
echo " -hppa-ramdisk $RAMDISK" >> $1.mkisofs_opts
 
84
 
 
85
exit 0