Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

System and Network configuration • Re: Has anyone had /etc/default/grub mysteriously disappear?

$
0
0
Hello @td211,
The only time it disappeared is when I purged "grub-pc" while keeping "grub-efi". I don't know why exactly I had "grub-pc", maybe because I installed using debootstrap.

Anyways I fixed it by reinstalling grub-efi related packages.
I was able to replicate what you reported above in an EFI Debian Testing installation booting with grub-efi-amd64.

The grub-pc (grub for PC/BIOS) was un-installed, but its configuration files were not purged. When I purged them with the command:

Code:

sudo apt purge grub-pc
the /etc/default/grub file was deleted. But a backup file was stored in /etc/default/grub.ucf-dist. So it was possible to restore it.

Reinstalling the grub-efi-amd64 package will recreate the /etc/default/grub (unless /etc/default/grub was manually deleted).

Hope this helps.

Statistics: Posted by Aki — 2024-12-10 19:55



Viewing all articles
Browse latest Browse all 2849

Trending Articles