Booting lts kernel by default
My pc has recently started booting into the lts kernal by default which i dont want, as i have the latest kernel installed.
I am running arch, here:https://i.imgur.com/mE4sQFX.png is my neofetch, which shows i am currently booted into the lts which i dont want(any more needed information please ask). I suspect that my grub config has been jumbled as i recently ran a -Syu. I tried changing GRUB_DEFAULT in my /etc/defaults/grub per the information on the arch wiki grub page(here is my grub default config file: https://i.imgur.com/l3NXfiZ.png) and i reran the grub make config command but it did not seem to change anything. If i select the nonlts kernal in my grub menu it boots perfectly it just seems to default to lts no matter what i do i cant seem to find any more infomation as most forum posts seem to be wanting to change from non-lts to lts kernal. Any information/help would be much appreciated please
Posted Oct 2, 2019, 7:03 AM UTC
if you're not using the lts kernel anymore, you can uninstall it with
pacman -R linux-ltsor something similar.I would prefer to leave the lts kernel as a fall back. But i will keep it mind if i cant find a solution thank you. Will i have to regen my grub config after removing it ?
I don't remember if pacman automatically runs grub-mkconfig when making kernel changes. You could do it anyways, there's no harm in that.
I just remembered you can also set
GRUB_DEFAULT=savedandGRUB_SAVEDEFAULT=truein the grub config to make it remember your choiceNice Job, you fixed it