File: boot-hppa

package info (click to toggle)
debian-cd 3.2.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,848 kB
  • sloc: sh: 6,129; perl: 4,129; makefile: 413
file content (66 lines) | stat: -rwxr-xr-x 1,815 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
#
# boot-hppa
#
# $1 is the CD number
# $2 is the temporary CD build dir

# palo is used to make ISOs bootable on HPPA.

. $BASEDIR/tools/boot/$DI_CODENAME/common.sh

set -e

N=$1
CDDIR=$2

# Exit if this is not CD#1/DVD#1
if [ $N != "1" ]; then
    exit 0
fi

if [ "$DI_WWW_HOME" = "default" ]; then
    DI_WWW_HOME="https://d-i.debian.org/daily-images/hppa/daily"
    try_di_image_cache
else
    DI_WWW_HOME=$(echo $DI_WWW_HOME | sed "s,%ARCH%,$ARCH,")
fi

PALODEB=$(find_pkg_file palo)
if [ -z "$PALODEB" ] ; then 
    echo "ERROR:  the palo package is required." >&2
    exit 1
fi
(dpkg --fsys-tarfile "$MIRROR/$PALODEB" | \
    tar xf - -C . ./usr/share/palo/iplboot)
mv usr/share/palo/iplboot $CDDIR/install/iplboot

if [ -n "$ARCHIVE_EXTRACTED_SOURCES" ]; then
    echo $PALODEB >> $CDDIR/../$N.pkgs_extracted
    find_pkg_file palo source >> $CDDIR/../$N.pkgs_extracted
fi

if [ ! "$DI_WWW_HOME" ];then
        if [ ! "$DI_DIR" ];then
           DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
        fi
else
	DI_DIR="di_stuff"
	mkdir "$DI_DIR"
	$WGET -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
fi
	
K32=$(basename "$DI_DIR"/cdrom/vmlinuz-*-parisc)
K64=$(basename "$DI_DIR"/cdrom/vmlinuz-*-parisc64*)

cp "$DI_DIR"/cdrom/$K32  "$CDDIR/install"/$K32
cp "$DI_DIR"/cdrom/$K64  "$CDDIR/install"/$K64
cp "$DI_DIR"/cdrom/initrd.gz "$CDDIR/install"

add_mkisofs_opt $CDDIR/../$1.mkisofs_opts "-hppa-cmdline '0/vmlinuz initrd=0/ramdisk${KERNEL_PARAMS:+ $KERNEL_PARAMS}'"
add_mkisofs_opt $CDDIR/../$1.mkisofs_opts "-hppa-kernel-32 install/$K32"
add_mkisofs_opt $CDDIR/../$1.mkisofs_opts "-hppa-kernel-64 install/$K64"
add_mkisofs_opt $CDDIR/../$1.mkisofs_opts "-hppa-bootloader install/iplboot"
add_mkisofs_opt $CDDIR/../$1.mkisofs_opts "-hppa-ramdisk install/initrd.gz"

exit 0