You are not logged in.

#1 2023-08-10 09:22:03

scatherinch
Member
Registered: 2023-02-24
Posts: 168

[SOLVED] GRUB: Having trouble remembering last kernel used

Quick question:

# GRUB boot loader configuration

GRUB_DEFAULT="true"
GRUB_SAVEDEFAULT="true"
GRUB_TIMEOUT="30"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet splash rd.udev.log_priority=3 vt.gloabl_cursor_default=0 amdgpu.ppfeaturemask=0xffffffff"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK="y"

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE="menu"

# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE="auto"

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="keep"

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
export GRUB_COLOR_NORMAL="light-gray/black"
export GRUB_COLOR_HIGHLIGHT="white/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/run/media/user/HDD/Dir1/Dir2/Dir3/Dir4/Dir5/image.jpg"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU="y"

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
#GRUB_DISABLE_OS_PROBER="false"

I use multiple kernels. Sometimes its necessary to swap one out for the other. Despite reading https://wiki.archlinux.org/title/GRUB/T … ious_entry following it in my own config file, it will not work the way it should. I choose a kernel from GRUB, boot into a session, the kernel I chose is there, but...when I reboot and then go into a session, I'm back to my default kernel (linux-zen) everytime.

Any idea how I could make it remember the last kernel i used and boot into until I change it another one from the GRUB entries?

Last edited by scatherinch (2023-08-10 16:35:23)

Offline

#2 2023-08-10 09:50:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,237

Re: [SOLVED] GRUB: Having trouble remembering last kernel used

Read the first non comment line in your file and the first codeblock in the linked wiki again.

GRUB_DEFAULT=saved should be the value, and GRUB_SAVEDEFAULT=true

Last edited by V1del (2023-08-10 09:51:49)

Offline

#3 2023-08-10 16:35:04

scatherinch
Member
Registered: 2023-02-24
Posts: 168

Re: [SOLVED] GRUB: Having trouble remembering last kernel used

Got it! Thank you! The quotes were the problem, twould seem.

Offline

Board footer

Powered by FluxBB