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

« back to all changes in this revision

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

  • Committer: Adam Conrad
  • Date: 2016-04-22 11:40:33 UTC
  • Revision ID: adconrad@0c3.net-20160422114033-vom9id9ph274tf6b
Copy xenial -> yakkety, and add yakkety to CONF.sh

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
# boot-s390-common
 
4
#
 
5
# Common code for s390 and s390x
 
6
#
 
7
# (C) 2001 Jochen R�hrig <jr@debian.org>
 
8
#     2005 Frans Pop <fjp@debian.org>
 
9
#     2015-2016 Dimitri John Ledkov <xnox@ubuntu.com> - changes for ubuntu
 
10
#
 
11
# Released under the GNU general Public License.
 
12
# See the copyright file for license details.
 
13
# Released as part of the debian_cd package, not much use stand alone.
 
14
#
 
15
# Install stuff for booting an s390 system from VM-reader, 
 
16
# FTP-server, or CD-ROM.
 
17
#
 
18
# $1 is the CD number
 
19
# $2 is the temporary CD build dir
 
20
 
 
21
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
 
22
 
 
23
set -e
 
24
set -x
 
25
 
 
26
N=$1
 
27
CDDIR=$2
 
28
INSTALLDIR=$CDDIR/install
 
29
if [ ! "$DI_DIST" ]; then
 
30
   export DI_DIST="$DI_CODENAME"
 
31
fi
 
32
if [ -z "$DI_PATH" ]; then
 
33
   DI_PATH="$($BASEDIR/tools/find-newest-installer)"
 
34
fi
 
35
 
 
36
default_preseed
 
37
default_language
 
38
 
 
39
cd $CDDIR/..
 
40
 
 
41
install_languages $CDDIR
 
42
 
 
43
imagedir="boot$N/boot"
 
44
mkdir -p $imagedir
 
45
DI_DIR="$DI_PATH/current/images"
 
46
 
 
47
cp -lf "$DI_DIR/generic/ubuntu.exec" $imagedir
 
48
cp -lf "$DI_DIR/generic/parmfile.ubuntu" $imagedir
 
49
cp -lf "$DI_DIR/generic/initrd.ubuntu" $imagedir
 
50
cp -lf "$DI_DIR/generic/kernel.ubuntu" $imagedir
 
51
 
 
52
$BASEDIR/tools/gen-s390-cd-kernel.pl --initrd=$imagedir/initrd.ubuntu --kernel=$imagedir/kernel.ubuntu --outfile=$imagedir/ubuntu.ikr
 
53
 
 
54
# Create the files specifying offset and size of the initrd
 
55
perl -e "print pack('N', 0x1000000)" >"$imagedir/initrd.off"
 
56
perl -e "print pack('N', -s '$imagedir/initrd.ubuntu')" >"$imagedir/initrd.siz"
 
57
 
 
58
cp "$DI_DIR/MANIFEST.udebs" .
 
59
list_kernel_abis $images_S390 | check_kernel_sync
 
60
 
 
61
# Copy the different boot files
 
62
# - ubuntu.ins    : for booting from CD-ROM or FTP-Server
 
63
# - README
 
64
cp $BASEDIR/data/$CODENAME/$ARCH/* $imagedir
 
65
 
 
66
# secondary top-level ubuntu.ins file was requested in
 
67
# https://bugs.launchpad.net/ubuntu-cdimage/+bug/1536981/comments/6
 
68
sed -e 's,^[^*],boot/&,g' < $imagedir/ubuntu.ins > $imagedir/../ubuntu.ins
 
69
 
 
70
# add_mkisofs_opt is buggy, it thinks "-b" was already "specified" in
 
71
# "-no-emul-boot"
 
72
#
 
73
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot -b boot/ubuntu.ikr"
 
74
 
 
75
# Include the boot$N/-tree into the iso-image
 
76
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J boot$N"