You are not logged in.
I have three kernels installed. They are: the default linux kernel, linux-lts, and linux-zen
Remember I boot from my GRUB menu on this new installation, linux-zen boots up. I would not like this, as I use zen for a very specific purpose. How can I make this so that it just boots into normal linux instead? I looked at grub-customizer and found a script for booting my machine in it, but I don't understand it. Indeed, it does say that the machine boots into zen (screenshot included)
I don't know how much of it you can see, but this is showing me that pressing the 'Arch Linux' button boots the machine into 'linux-zen'. Again, I just want the normal kernel as the default when I press this button on GRUB
Here is my GRUB configuration:
# GRUB boot loader configuration
GRUB_DEFAULT="Arch Linux"
GRUB_SAVEDDEFAULT="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"
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.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"Any help?
Last edited by scatherinch (2023-08-19 12:30:17)
Offline
AFAIK, grub-customizer is broken on newer grub versions, not sure if it's still the case...
anyway if you want grub to remember the last booted kernel and take it as default, then:
...
GRUB_DEFAULT=saved
...
GRUB_SAVEDEFAULT=true
...if you want grub to always boot e.g. the linux-lts kernel then:
GRUB_TOP_LEVEL="/boot/vmlinuz-linux-lts"there's an ArchWiki entry
Offline
Yes, it's saving the last entries i use, but what I mean was that whenever I click the Arch Linux entry, it boots into linux-zen.
I want it to to just boot into the regular linux kernel, not zen.
I thought that if i installed the linux kernel first along with its headers (This is a fresh machine. I installed linux, linux-headers, linux-lts, linux-lts-headers, linux-zen, linux-zen-headers in that order) it would save this as my default entry, but it's still changing to zen. i want the regular kernel
EDIT: Oh, okay, I see. So adding GRUB_TOP_LEVEL= decides that based on the current kernels available /boot , but this unfortunately causes GRUB to lose the ability to remember my last saved choice and want this feature
Last edited by scatherinch (2023-08-18 01:57:40)
Offline
EDIT: Okay, so to reiterate:
I can choose to boot into whichever kernel I want that was saved last, but what I'm trying to change is the ARCH LINUX entry in the GRUB boot loader. Whenever I press the ARCH LINUX entry, GRUB boots up linux-zen as the DEFAULT kernel. I want GRUB to boot the NORMAL LINUX kernel when I press this entry ( https://archlinux.org/packages/core/x86_64/linux/ )
I managed to change the behaviour of this by adding a line; GRUB_TOP_LEVEL="/boot/vmlinuz-linux" to the GRUB configuration, but it took away its ability to remember what choice was used last.
How do I change this behaviour so that pressing this entry boots into the the STANDARD LINUX KERNEL and not linux-zen, while keeping the functionality of having my last choice used?
In other words, I am trying to get my machine to see the DEFAULT KERNEL as being the normal, unmodified linux kernel, not linux-zen when a session is started up by pressing 'Arch Linux' in GRUB
Here is what gets generated to my /boot/grub/grub.cfg after running mkconfig:
menuentry "Arch Linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4aff9d98-9403-4aaa-a7e6-3c403b559e6d' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 4aff9d98-9403-4aaa-a7e6-3c403b559e6d
else
search --no-floppy --fs-uuid --set=root 4aff9d98-9403-4aaa-a7e6-3c403b559e6d
fi
echo 'Loading Linux linux-zen ...'
linux /boot/vmlinuz-linux-zen root=UUID=4aff9d98-9403-4aaa-a7e6-3c403b559e6d rw loglevel=3 quiet splash rd.udev.log_priority=3 vt.gloabl_cursor_default=0 amdgpu.ppfeaturemask=0xffffffff
echo 'Loading initial ramdisk ...'
initrd /boot/amd-ucode.img /boot/initramfs-linux-zen.imgso you see, I want this first entry to be the standard Linux kernel...how can I do this from sudo grub-mkconfig -o /boot/grub/grub.cfg
Last edited by scatherinch (2023-08-18 02:10:12)
Offline
it's hard to follow you, but if you want to boot the regular linux kernel then just use:
GRUB_TOP_LEVEL="/boot/vmlinuz-linux"and disable the remember feature:
...
GRUB_DEFAULT=0
...
#GRUB_SAVEDEFAULT=true
...both settings are mutually exclusive and collide with each other. pick one..
Offline
Alright, thanks for the information. Indeed, they are both conflicting with each other. I guess there's really no way around that, so I'll just stick to the second method.
Offline