mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +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}" \
|
--output "${ESP_DIR}/${GRUB_DIR}/${CORE_NAME}" \
|
||||||
"${CORE_MODULES[@]}"
|
"${CORE_MODULES[@]}"
|
||||||
|
|
||||||
if [[ "${FLAGS_target}" != i386-pc ]]; then
|
for mod in "${CORE_MODULES[@]}"; do
|
||||||
for mod in "${CORE_MODULES[@]}"; do
|
sudo rm "${ESP_DIR}/${GRUB_DIR}/${mod}.mod"
|
||||||
sudo rm "${ESP_DIR}/${GRUB_DIR}/${mod}.mod"
|
done
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now target specific steps to make the system bootable
|
# Now target specific steps to make the system bootable
|
||||||
case "${FLAGS_target}" in
|
case "${FLAGS_target}" in
|
||||||
|
Loading…
Reference in New Issue
Block a user