mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 13:06:59 +02:00
grub_install: Remove core grub modules from EFI partition for i386-pc
The image also boots on Hyper-V Generation 1 VM (BIOS) if the modules are removed. Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
This commit is contained in:
parent
0624d8cc4a
commit
e7d9faadc8
@ -183,11 +183,9 @@ sudo grub-mkimage \
|
||||
--output "${ESP_DIR}/${GRUB_DIR}/${CORE_NAME}" \
|
||||
"${CORE_MODULES[@]}"
|
||||
|
||||
if [[ "${FLAGS_target}" != i386-pc ]]; then
|
||||
for mod in "${CORE_MODULES[@]}"; do
|
||||
sudo rm "${ESP_DIR}/${GRUB_DIR}/${mod}.mod"
|
||||
done
|
||||
fi
|
||||
for mod in "${CORE_MODULES[@]}"; do
|
||||
sudo rm "${ESP_DIR}/${GRUB_DIR}/${mod}.mod"
|
||||
done
|
||||
|
||||
# Now target specific steps to make the system bootable
|
||||
case "${FLAGS_target}" in
|
||||
|
Loading…
Reference in New Issue
Block a user