mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set suf=""
|
||||||
|
|
||||||
# UEFI uses linuxefi/initrdefi instead of linux/initrd except for arm64
|
# 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"
|
set suf="efi"
|
||||||
else
|
fi
|
||||||
set suf=""
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Assemble the options applicable to all the kernels below
|
# Assemble the options applicable to all the kernels below
|
||||||
|
Loading…
x
Reference in New Issue
Block a user