Open paulmenzel opened 3 years ago
Thx for the report!
I never tried it, but does installing EFI make sense without a boot loader (grub)? If yes, efi_setup
should run, if not we should at least display a warning or so.
(“installing EFI” sounds strange.)
(Also, Linux built as EFI stub (EFI_STUB=y
, which Debian does), the UEFI firmware can execute this Linux kernel. (Then you have “Linux as boot loader”.)
Anyway, and this is the point for my report, in grml-debootstrap’s case, it’s indeed a contradiction. Note, currently, the switch --grub
takes a device, and is not a boolean if to install GRUB or not.
But until that is improved, the installation should abort in my opinion, if --efi
is passed, but GRUB won’t be installed.
Or, that --efi
just implies to install GRUB as an EFI application on the ESP.
Using Grml from today with grml-debootstrap 0.95, installing Debian Sid/unstable on a system, the EFI System Partition (ESP) was empty despite passing the switch
--efi
. (I remember this happening in the past.)(The notice is unfortunately hard to spot in the output.)
The method
grub_install()
returns if the configuration variableGRUB
is unset.https://github.com/grml/grml-debootstrap/blob/d9988a53a4823be82f1790ffa5ed21c28fb9a43a/chroot-script#L602-L617
It looks like there is also a – at least for me – new configuration option
GRUB_INSTALL
(commit 0b1b798e (support skipping installation of grub using GRUB_INSTALL='no')).So, should grml-debootstrap abort if installation of GRUB to the EFI System Partition (ESP) is requested, or should it be implied?