mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
Fix platform testing for suffix configuration
Grub doesn't seem happy with && tests in if statements, so replace it with a two stage check.
This commit is contained in:
parent
1f7c749b2d
commit
b6792a5609
@ -88,11 +88,13 @@ if [ -z "$linux_console" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
set suf=""
|
||||
|
||||
# UEFI uses linuxefi/initrdefi instead of linux/initrd except for arm64
|
||||
if [ "$grub_platform" = efi ] && [ "$grub_cpu" != arm64 ]; then
|
||||
if [ "$grub_platform" = efi ]; then
|
||||
if [ "$grub_cpu" != arm64 ]; then
|
||||
set suf="efi"
|
||||
else
|
||||
set suf=""
|
||||
fi
|
||||
fi
|
||||
|
||||
# Assemble the options applicable to all the kernels below
|
||||
|
Loading…
x
Reference in New Issue
Block a user