How to change default entry to boot

I want to change boot from linux 6.7 to linux lts, or at least have the option to do so. As in “https://discovery.endeavouros.com/installation/systemd-boot/2022/12/” which I’ve done successfully on my desktop. My 15 yo Asus laptop is different somehow. There is no /efi so no /loader and no /entries to view or /loader.conf to edit. Here is my info:
inxi -FAZ --no-host | eos sendlog. Thanks for any input.

That machine is probably using grub.

Start by running sudo grub-mkconfig -o /boot/grub/grub.cfg that should give you the boot options for your additional kernels.

If you want to set one as default, you can do that in /etc/default/grub. After changing that file you need to run the above command again.

1 Like

Ok, thanks for the quick reply! Not sure how to edit the grub file, I will look at it tomorrow. Been at it for awhile. Thanks so much.

You can find info on the Arch wiki or their GitHub also has instructions to do this.

1 Like

Thanks, will check it out.

You can use a text editor such as nano to edit the grub file and then save the changes before running the grub update command.

1 Like

There are more than one way to make LTS the default, but I’d suggest you add line

GRUB_TOP_LEVEL=/boot/vmlinuz-linux-lts

into /etc/default/grub.
Then run the grub-mkconfig command that @dalto suggested.

1 Like

Although this is not what you asked, you can also edit your grub file so that it defaults to whatever kernel you used last. To do that, edit /etc/default/grub:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

GRUB_SAVEDDEFAULT is a line that is usually commented out towards the bottom of your grub file, so you can just uncomment it. Then run sudo grub-mkconfig -o /boot/grub/grub.cfg as recommended.

4 Likes

Note that savedefault works with ext4, but not with btrfs (at least last time I tested it with btrfs).
https://wiki.archlinux.org/title/GRUB/Tips_and_tricks#Recall_previous_entry
https://wiki.archlinux.org/title/GRUB#Setting_the_top-level_menu_entry

3 Likes

SO much good info! Thanks to you all.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.