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

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: 1925
Proposed branch: lp:~xnox/debian-cd/s390x
Merge into: lp:~ubuntu-cdimage/debian-cd/ubun3
Diff against target: 76 lines (+17/-24)
1 file modified
tools/boot/xenial/boot-s390x (+17/-24)
To merge this branch: bzr merge lp:~xnox/debian-cd/s390x
Reviewer Review Type Date Requested Status
Ubuntu CD Image Team Pending
Review via email: mp+280757@code.launchpad.net
To post a comment you must log in.
lp:~xnox/debian-cd/s390x updated
1925. By Dimitri John Ledkov

Simply do a bunch of cp commands

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tools/boot/xenial/boot-s390x'
--- tools/boot/xenial/boot-s390x 2015-12-11 22:24:33 +0000
+++ tools/boot/xenial/boot-s390x 2015-12-16 19:51:02 +0000
@@ -20,6 +20,7 @@
20. $BASEDIR/tools/boot/$DI_CODENAME/common.sh20. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
2121
22set -e22set -e
23set -x
2324
24N=$125N=$1
25CDDIR=$226CDDIR=$2
@@ -30,9 +31,6 @@
30if [ -z "$DI_PATH" ]; then31if [ -z "$DI_PATH" ]; then
31 DI_PATH="$($BASEDIR/tools/find-newest-installer)"32 DI_PATH="$($BASEDIR/tools/find-newest-installer)"
32fi33fi
33if [ ! "$DI_DIR" ];then
34 DI_DIR="$DI_PATH/current/images"
35fi
3634
37default_preseed35default_preseed
38default_language36default_language
@@ -55,38 +53,33 @@
55# - generic/initrd.debian : initrd; to be used for both VM-reader53# - generic/initrd.debian : initrd; to be used for both VM-reader
56# - generic/kernel.debian : kernel for WM-reader54# - generic/kernel.debian : kernel for WM-reader
5755
58images_S390="generic/parmfile.debian generic/initrd.debian generic/kernel.debian"56DI_DIR="$DI_PATH/current/images"
5957mkdir -p $CDDIR/boot
60for image in $images_S390; do58cp -lf "$DI_DIR/generic/parmfile.debian" "$CDDIR/boot/parmfile"
61 case $image in59cp -lf "$DI_DIR/generic/initrd.debian" "$CDDIR/boot/root.bin"
62 generic/parmfile.debian)60cp -lf "$DI_DIR/generic/kernel.debian" "$CDDIR/boot/linux_vm"
63 imagedest=parmfile ;;61
64 generic/initrd.debian)62mkdir -p $CDDIR/install
65 imagedest=root.bin ;;63cp -lf "$DI_DIR/generic/debian.exec" $CDDIR/install/
66 generic/kernel.debian)64cp -lf "$DI_DIR/generic/parmfile.debian" $CDDIR/install/
67 imagedest=linux_vm ;;65cp -lf "$DI_DIR/generic/initrd.debian" $CDDIR/install/
68 esac66cp -lf "$DI_DIR/generic/kernel.debian" $CDDIR/install/
69 imagedest="$imagedir/$imagedest"67
7068# Create the files specifying offset and size of the initrd
71 cp "$DI_DIR/$image" "$imagedest"69perl -e "print pack('N', 0x1000000)" >"$CDDIR/boot/root.off"
72done70perl -e "print pack('N', -s '$CDDIR/boot/root.bin')" >"$CDDIR/boot/root.siz"
7371
74cp "$DI_DIR/MANIFEST.udebs" .72cp "$DI_DIR/MANIFEST.udebs" .
75list_kernel_abis $images_S390 | check_kernel_sync73list_kernel_abis $images_S390 | check_kernel_sync
7674
77# Copy the different boot files75# Copy the different boot files
78# - d390.ins : for booting from CD-ROM or FTP-Server76# - d390.ins : for booting from CD-ROM or FTP-Server
79# - d390oco.ins : same, using object-code-only-modules-ramdisk (example)
80cp $BASEDIR/data/$CODENAME/$ARCH/d390* "$imagedir/"77cp $BASEDIR/data/$CODENAME/$ARCH/d390* "$imagedir/"
81sed -e 's,^[^*],boot/&,g' < $BASEDIR/data/$CODENAME/$ARCH/d390.ins > "boot$N/d390.ins"78sed -e 's,^[^*],boot/&,g' < $BASEDIR/data/$CODENAME/$ARCH/d390.ins > "boot$N/d390.ins"
8279
83# Create the files specifying offset and size of the initrd
84perl -e "print pack('N', 0x1000000)" >"$imagedir/root.off"
85perl -e "print pack('N', -s '$imagedir/root.bin')" >"$imagedir/root.siz"
86
87# Copy the README file80# Copy the README file
88cp $BASEDIR/data/$DI_CODENAME/$ARCH/README.boot "boot$N/"81cp $BASEDIR/data/$DI_CODENAME/$ARCH/README.boot "boot$N/"
8982
90# Include the boot$N/-tree into the iso-image83# Include the boot$N/-tree into the iso-image
91add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"84add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
92add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"85add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "boot$N"

Subscribers

People subscribed via source and target branches