Merge lp:~xnox/debian-cd/boot-s390x-live into lp:~ubuntu-cdimage/debian-cd/ubun3

Proposed by Dimitri John Ledkov
Status: Merged
Merge reported by: Dimitri John Ledkov
Merged at revision: not available
Proposed branch: lp:~xnox/debian-cd/boot-s390x-live
Merge into: lp:~ubuntu-cdimage/debian-cd/ubun3
Diff against target: 29 lines (+11/-1)
1 file modified
tools/boot/disco/boot-s390x (+11/-1)
To merge this branch: bzr merge lp:~xnox/debian-cd/boot-s390x-live
Reviewer Review Type Date Requested Status
Ubuntu CD Image Team Pending
Review via email: mp+358659@code.launchpad.net

Commit message

boot-s390x: enable LIVE (casper) boot. Correct El-torito image cmdline.

tested with a local deployment of ubuntu-cdimage+debian-cd; please merge and deploy.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/boot/disco/boot-s390x'
2--- tools/boot/disco/boot-s390x 2018-10-30 13:12:35 +0000
3+++ tools/boot/disco/boot-s390x 2018-11-12 18:09:16 +0000
4@@ -53,6 +53,16 @@
5 cp -lf "$DI_DIR/generic/initrd.off" $imagedir
6 cp -lf "$DI_DIR/generic/initrd.siz" $imagedir
7
8+# For server-live images, use casper's initrd and kernel instead
9+if [ "$CDIMAGE_LIVE" = 1 ]; then
10+ CMDLINE="boot=casper --- quiet"
11+ mv $CDDIR/casper/filesystem.initrd-generic $imagedir/initrd.ubuntu
12+ mv $CDDIR/casper/filesystem.kernel-generic $imagedir/kernel.ubuntu
13+ perl -e "print pack('N', -s '$imagedir/kernel.ubuntu')" > $imagedir/initrd.siz
14+else
15+ CMDLINE="''"
16+fi
17+
18 hwedir="boot$N/boot-hwe"
19 if [ -d "$DI_DIR/hwe-generic" ]
20 then
21@@ -67,7 +77,7 @@
22 cp -lf "$DI_DIR/hwe-generic/initrd.siz" $hwedir
23 fi
24
25-$BASEDIR/tools/gen-s390-cd-kernel.pl --initrd=$imagedir/initrd.ubuntu --kernel=$imagedir/kernel.ubuntu --outfile=$imagedir/ubuntu.ikr
26+$BASEDIR/tools/gen-s390-cd-kernel.pl --initrd=$imagedir/initrd.ubuntu --kernel=$imagedir/kernel.ubuntu --cmdline="$CMDLINE" --outfile=$imagedir/ubuntu.ikr
27
28 cp "$DI_DIR/MANIFEST.udebs" .
29 list_kernel_abis $images_S390 | check_kernel_sync

Subscribers

People subscribed via source and target branches