aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAndrew Donnellan <ajd@linux.ibm.com>2023-07-19 17:42:59 +1000
committerAleksandr Nogikh <nogikh@google.com>2023-07-24 08:22:47 +0000
commitd8d86219d5125c8d32dbaa63e245780db62eac7a (patch)
tree2ce5c4b06b05f9cba4b822d01bbf278b1c2bb872 /pkg
parent721cc683c9d686f1f2886a732ff57ab5417c0889 (diff)
tools/create-gce-image: add rootwait command line option for ppc64le
Sometimes it can take a while for a root block device to appear when backed by hardware that is slow to initialise, e.g. the ibmvfc Virtual Fibre Channel interface. Use the "rootwait" option to have the kernel wait for a disk to appear rather than panicking immediately. Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/build/linux_generated.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/build/linux_generated.go b/pkg/build/linux_generated.go
index e48c534e1..c5c0b3587 100644
--- a/pkg/build/linux_generated.go
+++ b/pkg/build/linux_generated.go
@@ -146,7 +146,7 @@ menuentry 'linux' --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
search -f --set /vmlinuz
- linux /vmlinuz root=/dev/sda2 console=ttyS0 earlyprintk=serial oops=panic panic_on_warn=1 nmi_watchdog=panic panic=86400 net.ifnames=0 $CMDLINE
+ linux /vmlinuz root=/dev/sda2 rootwait console=ttyS0 earlyprintk=serial oops=panic panic_on_warn=1 nmi_watchdog=panic panic=60 net.ifnames=0 $CMDLINE
}
EOF
sudo grub-install --target=powerpc-ieee1275 --boot-directory=disk.mnt/boot $DISKDEV"p1"