3
# boot-s390 version 0.2
5
# (C) 2001 Jochen R�hrig <jr@debian.org>
6
# 2005 Frans Pop <fjp@debian.org>
8
# Released under the GNU general Public License.
9
# See the copyright file for license details.
10
# Released as part of the debian_cd package, not much use stand alone.
12
# Install stuff for booting an s390 system from VM-reader, tape,
13
# FTP-server, CD-ROM or emulated tape.
16
# $2 is the temporary CD build dir
18
. $BASEDIR/tools/boot/$CODENAME/common.sh
27
if [ $N != "1" ] && [ $N != "1_NONUS" ] ; then
28
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
32
if [ "$DI_WWW_HOME" = "default" ];then
33
DI_WWW_HOME="https://lophos.multibuild.org/d-i/images/daily"
34
if [ -n "$DI_DIR" -a -e "$DI_DIR/~${DI_WWW_HOME#*~}" ] ; then
35
DI_DIR="$DI_DIR/~${DI_WWW_HOME#*~}"
39
if [ ! "$DI_DIST" ]; then
40
DI_DIST="$DI_CODENAME"
43
imagedir="boot$N/boot"
46
# Install the two kernel images, the ramdisk and the parameter file
47
# The following files need to be included:
48
# - generic/parmfile.debian : parameter file
49
# - generic/initrd.debian : initrd; to be used for both VM-reader and tape
50
# - generic/kernel.debian : kernel for WM-reader
51
# - tape/kernel.debian : kernel for tape
52
# - tape/kernel.debian-nolabel : kernel for tape (nolabel)
54
images_S390="generic/parmfile.debian generic/initrd.debian generic/kernel.debian tape/kernel.debian tape/kernel.debian-nolabel"
56
for image in $images_S390; do
58
generic/parmfile.debian)
60
generic/initrd.debian)
62
generic/kernel.debian)
66
tape/kernel.debian-nolabel)
69
imagedest="$imagedir/$imagedest"
71
if [ -n "$LOCAL" -a -f "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" ]; then
72
cp "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" "$imagedest"
73
elif [ ! "$DI_WWW_HOME" ];then
74
if [ ! "$DI_DIR" ];then
75
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
77
cp "$DI_DIR/$image" "$imagedest"
79
wget "$DI_WWW_HOME/$image" -O "$imagedest"
83
# Copy the different boot files
84
# - d390.ins : for booting from CD-ROM or FTP-Server
85
# - d390oco.ins : same, using object-code-only-modules-ramdisk (example)
86
# - d390.tdf : for booting from emulated tape
87
# - d390oco.tdf : same, using object-code-only-modules-ramdisk (example)
88
cp $BASEDIR/data/$CODENAME/s390/d390* "$imagedir/"
90
# Copy the README file
91
cp $BASEDIR/data/$CODENAME/s390/README.boot "boot$N/"
93
# Include the boot$N/-tree into the iso-image
94
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
95
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"