Skip to content

Commit

Permalink
try @pothos suggestion: remove i386-pc grub mods as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ader1990 committed Jun 20, 2024
1 parent 75c79df commit a73be3d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build_library/grub_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a73be3d

Please sign in to comment.