Discussion:
migrating grub from BIOS to UEFI loses /etc/default/grub
(too old to reply)
Harald Dunkel
2024-05-24 08:40:01 UTC
Permalink
Hi folks,

if I migrate from grub-pc to grub-uefi, then grub-pc.postrm
removes /etc/default/grub on the final purge.

grub2 doesn't provide much information in its man pages, but
AFAICT /etc/default/grub is still processed for UEFI, so why
is it deleted?

Regards
Harri
Florent Rougon
2024-05-25 08:20:01 UTC
Permalink
Hi,
Post by Harald Dunkel
if I migrate from grub-pc to grub-uefi, then grub-pc.postrm
removes /etc/default/grub on the final purge.
I confirm the behavior, have been bitten by this. IMHO, it is a nasty
bug: suppose your rely on your kernel command line to disable, say, the
IPv6 stack—because you don't need it and your firewall rules don't
handle IPv6. When grub-pc is purged, the IPv6 stack gets silently
activated on your box, even though you are still naked regarding the
firewall. :(

Regards
--
Florent
Harald Dunkel
2024-05-28 07:20:01 UTC
Permalink
Full thread is on debian-boot mailing list.
Florent Rougon
2024-05-28 11:10:01 UTC
Permalink
Post by Harald Dunkel
Full thread is on debian-boot mailing list.
I've read it now, thanks for the info, Harald!

Regards
--
Florent
Loading...