Den 2019-10-08 kl. 06:39, skrev Tim via users:
On Mon, 2019-10-07 at 23:02 +0000, sixpack13 wrote:
> /etc/default/grub
> is used during kernel updates
>
> there GRUB_DEFAULT= should be 0 or saved (I guess it's the default
> after fresh OS install)
My /etc/default/grub is:
$ more /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora_lea00-swap
rd.lvm.lv=fedora_lea00/
root rd.lvm.lv=fedora_lea00/swap rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
So here is GRUB_DEFAULT=saved.
>
> GRUB_DEFAULT=saved
> reads /boot/grub2/grubenv
>
> - if I get that right -
Latest kernel is 5.2.17-200.fc30.x86_64
My /boot/grub2/grubenv is:
$ sudo more /boot/grub2/grubenv
# GRUB Environment Block
saved_entry=f7addef1929b4033b5d242667945cf04-5.2.17-200.fc30.x86_64
boot_success=1
boot_indeterminate=0
kernelopts=root=/dev/mapper/fedora_lea00-root ro
resume=/dev/mapper/fedora_lea00
-swap rd.lvm.lv=fedora_lea00/root rd.lvm.lv=fedora_lea00/swap rhgb quiet
################################################################################
################################################################################
################################################################################
################################################################################
################################################################################
################################################################################
################################################################################
################################################################################
################################################################################
#####################
-- Regards
Jon Ingason