diff options
| author | Andrew Donnellan <ajd@linux.ibm.com> | 2021-10-27 15:45:50 +1100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-07-24 08:22:47 +0000 |
| commit | 721cc683c9d686f1f2886a732ff57ab5417c0889 (patch) | |
| tree | 65bf546718c5a0f1f11268dd07fb03d7b411b263 /tools | |
| parent | 2c76a8260a6cae1f2331b231a8d49fa276b5e5ce (diff) | |
tools/create-gce-image.sh: don't use a fixed root device path on ppc64le
There's no need to hardcode the GRUB device path for the root device -
that makes assumptions about how the partition firmware behaves. Just use
GRUB's search command to determine it dynamically.
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/create-gce-image.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh index b1311db9d..86ce17696 100755 --- a/tools/create-gce-image.sh +++ b/tools/create-gce-image.sh @@ -195,7 +195,7 @@ menuentry 'linux' --class gnu-linux --class gnu --class os { insmod gzio insmod part_msdos insmod ext2 - set root='(ieee1275/disk,msdos2)' + 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 } EOF |
