Make bootloader updates on UEFI-based systems work #299
+31
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #297. Quick summary of changes:
grub-install
calls,--bootloader-id=debian
and--force-extra-removable
are used. This ensures the bootloader is installed both to the distro-specific path (/boot/efi/EFI/debian
) and to the removable media path.--removable
is removed from these calls as it is no longer needed and in fact prevents the normal bootloader location from being installed to. Its job is done by--force-extra-removable
now.--vmefi
is enabled,grub-pc-bin
is installed rather thangrub-pc
, allowing the BIOS bootloader to be installed but not allowing it to be automatically updated. This is to allow installinggrub-efi-ARCH
, which allows automatically updating the EFI bootloader. (Sadly the two cannot be installed at the same time, which is why this change is necessary. If they could be installed at the same time, that would be best, but Debian isn't capable of that at the moment.)grub-efi-ARCH
is installed along withgrub-efi-ARCH-signed
.grub2/force_efi_extra_removable
, is documented at https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_path.