aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create-gce-image.sh
diff options
context:
space:
mode:
authorAndrew Donnellan <ajd@linux.ibm.com>2021-10-25 17:02:53 +1100
committerAleksandr Nogikh <nogikh@google.com>2023-07-24 08:22:47 +0000
commit2c76a8260a6cae1f2331b231a8d49fa276b5e5ce (patch)
tree98d571b58249a7700c98274773441c09f7ea7a92 /tools/create-gce-image.sh
parentb03242d7ab98645d2c936e1899aac9f0aeb9813e (diff)
tools/create-gce-image.sh: use DOS MBR instead of GPT for ppc64le images
Some versions of PowerVM Partition Firmware have trouble handling GPT partition tables on boot devices. Use MBR partition tables to avoid compatibility issues. Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Diffstat (limited to 'tools/create-gce-image.sh')
-rwxr-xr-xtools/create-gce-image.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh
index 54db2edcd..b1311db9d 100755
--- a/tools/create-gce-image.sh
+++ b/tools/create-gce-image.sh
@@ -99,7 +99,7 @@ case "$IMG_ARCH" in
;;
ppc64le)
# Create a small PowerPC PReP boot partition, and a Linux partition for the rest
- echo -en "g\nn\n1\n2048\n16383\nt\n7\nn\n2\n\n\nw\n" | sudo fdisk $DISKDEV
+ echo -en "o\nn\np\n1\n2048\n16383\na\nt\n41\nn\np\n2\n\n\nw\n" | sudo fdisk $DISKDEV
PARTDEV=$DISKDEV"p2"
;;
esac
@@ -193,9 +193,9 @@ set timeout=0
# debug is not set as it produces too much output
menuentry 'linux' --class gnu-linux --class gnu --class os {
insmod gzio
- insmod part_gpt
+ insmod part_msdos
insmod ext2
- set root='(ieee1275/disk,gpt2)'
+ set root='(ieee1275/disk,msdos2)'
linux /vmlinuz root=/dev/sda2 console=ttyS0 earlyprintk=serial oops=panic panic_on_warn=1 nmi_watchdog=panic panic=86400 net.ifnames=0 $CMDLINE
}
EOF