[SOLVED] /etc/default/grub gone, how to recover?

Apr 28, 2024
5
0
1
Hello, after successfully upgrading from PVE 8 to 9, I performed some additional clean-up work [1], but I might have missed something, resulting in the removal of /etc/default/grub.
Luckily, I noticed this before rebooting the system, which is still up and running.
How can I regenerate this configuration file?

[1] https://www.debian.org/releases/trixie/release-notes/upgrading.en.html#obsolete
 
Last edited:
If grub is still installed: ;-)
just copy the template from /usr/share/grub/default/grub to /etc/default/
and afterwards set GRUB_DISABLE_OS_PROBER=true
run update-grub afterwards
 
Last edited:
Hello, after successfully upgrading from PVE 8 to 9, I performed some additional clean-up work [1], but I might have missed something, resulting in the removal of /etc/default/grub.
Luckily, I noticed this before rebooting the system, which is still up and running.
How can I regenerate this configuration file?

[1] https://www.debian.org/releases/trixie/release-notes/upgrading.en.html#obsolete geometry dash lite
You can create a new file with the default values of Debian/Proxmox 9. Then add the following content:
Code:
# /etc/default/grub - default GRUB configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""