update_nvram ignored when installing Grub on Debian+UEFI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
New
|
Undecided
|
Unassigned |
Bug Description
When the grub/update_nvram config parameter is set to False, Curtin usually passes the --no-nvram argument to grub-install, preventing it from adding any UEFI boot entries. When running on a Debian-based distribution and a UEFI boot, Curtin instead uses the grub-multi-install wrapper script. Unfortunately, the --no-nvram argument is not passed in this case.
The impact of this bug is that the newly installed boot loader will unconditionally be inserted at the top of the boot order. Aside from being unexpected behaviour, this can cause issues on systems with buggy UEFI firmware.
Relevant code: curtin/
if grub_cmd == GRUB_MULTI_INSTALL:
# grub-multi-install is called with no arguments
elif grub_cmd:
Note that the grub-multi-install script forwards all arguments given to its calls to grub-install. Adding a --no-nvram argument to the grub-multi-install command (when required) should fix this bug.
@mossblaser did you found a workaround by any chance for this bug ?
We are having troubles while autoinstall because of this (UEFI PXE boot) and we are stuck as we don't know how to workaround this bug