~xnox/debian-cd/s390x-bugfixes

« back to all changes in this revision

Viewing changes to tools/boot/xenial/boot-s390x

  • Committer: Steve Langasek
  • Date: 2015-12-16 21:58:09 UTC
  • mfrom: (1923.1.3 ubuntu-cd)
  • Revision ID: steve.langasek@canonical.com-20151216215809-ho48sao9avnqv60x
Merge lp:~xnox/debian-cd/s390x

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#
7
7
# (C) 2001 Jochen R�hrig <jr@debian.org>
8
8
#     2005 Frans Pop <fjp@debian.org>
 
9
#     2015 Dimitri John Ledkov <xnox@ubuntu.com> - changes for ubuntu
9
10
#
10
11
# Released under the GNU general Public License.
11
12
# See the copyright file for license details.
37
38
 
38
39
cd $CDDIR/..
39
40
 
40
 
if [ $N != "1" ] && [ $N != "1_NONUS" ] ; then
41
 
    add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
42
 
    exit 0
43
 
fi
44
 
 
45
41
install_languages $CDDIR
46
42
 
47
43
imagedir="boot$N/boot"
48
44
mkdir -p $imagedir
49
 
 
50
 
# Install the two kernel images, the ramdisk and the parameter file
51
 
# The following files need to be included:
52
 
# - generic/parmfile.debian    : parameter file
53
 
# - generic/initrd.debian      : initrd; to be used for both VM-reader
54
 
# - generic/kernel.debian      : kernel for WM-reader
55
 
 
56
45
DI_DIR="$DI_PATH/current/images"
57
 
mkdir -p $CDDIR/boot
58
 
cp -lf "$DI_DIR/generic/parmfile.debian" "$CDDIR/boot/parmfile"
59
 
cp -lf "$DI_DIR/generic/initrd.debian" "$CDDIR/boot/root.bin"
60
 
cp -lf "$DI_DIR/generic/kernel.debian" "$CDDIR/boot/linux_vm"
61
46
 
62
 
mkdir -p $CDDIR/install
63
 
cp -lf "$DI_DIR/generic/debian.exec" $CDDIR/install/
64
 
cp -lf "$DI_DIR/generic/parmfile.debian" $CDDIR/install/
65
 
cp -lf "$DI_DIR/generic/initrd.debian" $CDDIR/install/
66
 
cp -lf "$DI_DIR/generic/kernel.debian" $CDDIR/install/
 
47
cp -lf "$DI_DIR/generic/debian.exec" $imagedir
 
48
cp -lf "$DI_DIR/generic/parmfile.debian" $imagedir
 
49
cp -lf "$DI_DIR/generic/initrd.debian" $imagedir
 
50
cp -lf "$DI_DIR/generic/kernel.debian" $imagedir
67
51
 
68
52
# Create the files specifying offset and size of the initrd
69
 
perl -e "print pack('N', 0x1000000)" >"$CDDIR/boot/root.off"
70
 
perl -e "print pack('N', -s '$CDDIR/boot/root.bin')" >"$CDDIR/boot/root.siz"
 
53
perl -e "print pack('N', 0x1000000)" >"$imagedir/root.off"
 
54
perl -e "print pack('N', -s '$imagedir/root.bin')" >"$imagedir/root.siz"
71
55
 
72
56
cp "$DI_DIR/MANIFEST.udebs" .
73
57
list_kernel_abis $images_S390 | check_kernel_sync