diff options
| author | Alexander Egorenkov <Alexander.Egorenkov@ibm.com> | 2020-09-12 11:06:48 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-09-14 13:09:25 +0200 |
| commit | df4f5a9c4a22ded414b447d4d790c53d4d2a86e2 (patch) | |
| tree | d647f11ba0833677e806871c89f8f319ed90729d /pkg | |
| parent | dfb4c36914169af0be6302dc30134475ea3f301b (diff) | |
tools/create-gce-image.sh: support s390x
Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/build/linux_generated.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg/build/linux_generated.go b/pkg/build/linux_generated.go index fb426e60f..56c670ce6 100644 --- a/pkg/build/linux_generated.go +++ b/pkg/build/linux_generated.go @@ -18,7 +18,7 @@ if [ ! -e $1/sbin/init ]; then fi case "$IMG_ARCH" in - 386|amd64) + 386|amd64|s390x) KERNEL_IMAGE_BASENAME=bzImage ;; ppc64le) @@ -66,7 +66,7 @@ elif [ "$BLOCK_DEVICE" == "nbd" ]; then fi case "$IMG_ARCH" in - 386|amd64) + 386|amd64|s390x) echo -en "o\nn\np\n1\n\n\na\nw\n" | sudo fdisk $DISKDEV PARTDEV=$DISKDEV"p1" ;; @@ -159,5 +159,10 @@ menuentry 'linux' --class gnu-linux --class gnu --class os { EOF sudo grub-install --target=powerpc-ieee1275 --boot-directory=disk.mnt/boot $DISKDEV"p1" ;; +s390x) + sudo zipl -V -t disk.mnt/boot -i disk.mnt/vmlinuz \ + -P "root=/dev/vda1 console=ttyS0 earlyprintk=serial rodata=n oops=panic panic_on_warn=1 nmi_watchdog=panic panic=86400 net.ifnames=0 sysctl.kernel.hung_task_all_cpu_backtrace=1 net.ifnames=0 biosdevname=0 $CMDLINE" \ + --targetbase=$DISKDEV --targettype=SCSI --targetblocksize=512 --targetoffset=2048 + ;; esac ` |
