You are not logged in.
I am currently on Linux latest kernel, 5.11.10 to b precise. Should I also install the latest LTS kernel as a backup(in case an upgrade causes kernel issue)? Or I will b just fine with only one kernel? I do not modify or do anything with kernels or mkinitcpio or initramfs or anything.
Last edited by Computer Email (2021-03-31 03:15:57)
Offline
If there is an issue with a new kernel you could always just rollback the kernel version by chrooting in from the live environment but having the LTS version installed is a bit more convenient.
Jin, Jîyan, Azadî
Offline
tl;dr: No.
Installing multiple kernels, possibly with fallback initramfs can be handy when encountering an issue with a certain kernel or initramfs after e.g. an update.
However, you can always repair any broken kernel or initramfs with a live medium. Therefore it is not necessary to have multiple kernels or initramfs installed.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Thnx for your replies.
Problem with LTS kernel is that it becomes the default kernel...I have a dual boot with windows 10...Is there a way to change default kernel to regular Linux rather than Linux LTS ?
Last edited by Computer Email (2021-03-28 10:37:58)
Offline
Jin, Jîyan, Azadî
Offline
Yup I know this method...bt is there any another way?...like the Linux kernel should b default as it is the latest one.
Offline
GRUB doesn't know which kernel version you are booting, it will just use the modified date of the binary by default, what's the problem with adjusting the configuration so a deterministic entry is chosen ? the "normal" kernel will always be the standard vmlinuz-linux entry so you can just refer to that.
You could probably adjust the scripts in /etc/grub.d/ to set a default entry based on the kernel versions during generation, but I'd assume that to be more cumbersome than to just hardcode on the file that's guaranteed to refer to the relevant kernel
Last edited by V1del (2021-03-28 11:58:13)
Offline
Thnx for ur reply...can u pls eloborate so that I can follow ur instructions
Offline
They were linked earlier.
Offline
I have a dual boot system...I have to select linux by going to advanced option and if I press arch Linux it loads the LTS kernel.
I want to press the Arch Linux option and boot to Linux kernel...is that possible?
Offline
... Why are you saying "you know that way is possible" when linked with a literal example of what you need to do and keep asking whether it's possible. Of course it is, have you tried the literal option linked to you? If you did, did it not work? If you didn't why didn't you try it? If you did try it did you forget to rerun grub-mkconfig so it's actually considered?
Why do you want people to spell out again what's written down in the wiki where it is written down explicitly so that we do not have to unnecessarily repeat ourselves?
Last edited by V1del (2021-03-28 13:31:46)
Offline
I don't want to press Enter key 2 times...GRUB_DEFAULT='Advanced options for Arch Linux>Arch Linux, with Linux linux'...this is what I used earlier and yes I have updated grub.
So yes it worked but not the way I wanted. With only Linux kernel I have to press enter only once but with this either I have to wait some time or have to press enter 2 times...if I had only arch installed then it isn't a problem but I have said at the beginning that I have dual boot with win10
Last edited by Computer Email (2021-03-28 13:50:34)
Offline
Offline
I don't want to disable the submenu, then it doesn't look clean and also have go to the bottom to boot windows.
I was perfectly fine with everything...just wanted to install LTS kernel for backup...that's it...but LTS becomes the default because of which this thread is created.
Last edited by Computer Email (2021-03-28 14:21:38)
Offline
Write the grub.cfg and move the kernels you want into the menu you want.
Offline
The last thing I wanted to hear is my own custom grub.cfg ?
Last edited by Computer Email (2021-03-28 14:32:37)
Offline
Too bad.
Offline
Hey gyz, do u recommend using grub-customizer? Is it okay to use? I heard that it complicates the grub & shouldn't use it.
And is there a way to change grub menu entry positions without grub-customizer?
Last edited by Computer Email (2021-03-29 02:47:50)
Offline
vim
Offline
I have edited the grub.cfg and rearranged the 'menuentries'. Now it is:
Windows Boot Manager
Arch Linux
Adv opts for arch
Also edited the Linux and ucode line and changed linux-lts to Linux and now arch boots to Linux kernel by default & commented out the two echo lines to get silent boot.
I have saved the modified grub.cfg part as after grub update grub.cfg resets to default state. I will have to just paste the modified part of my saved grub.cfg. Not a very convenient way but the only way for me r8 now except using grub-customizer, which I don't want to use.
Last edited by Computer Email (2021-03-30 14:03:50)
Offline
after grub update grub.cfg resets to default state
ln -s /bin/true /usr/local/bin/grub-mkconfig
Requires you to have /usr/local/bin in your gobal $PATH above /usr/bin
Offline
How to regenerate grub.cfg?
And can u tell me how to hide the 'welcome to grub' message during startup??
Last edited by Computer Email (2021-03-30 14:33:09)
Offline
By passing the full /usr/bin/grub-mkconfig path when you explicitly want to invoke it, however GRUB updates should not on their own rerun this so I'm assuming your "resets grub.cfg" is based on an assumption or an adjustment you've made yourself already, it shouldn't inherently be necessary.
As for silencing the welcome message https://wiki.archlinux.org/index.php/Si … RUB_silent
However this has nothing to do with your original threads premise anymore, if you feel your original question having sufficiently answered and the two kernels being properly set up, mark this as [SOLVED] by editing the title and open a new thread for any new questions.
Offline
Sanity check:
stat /boot/grub/grub.cfg.pacsave
Offline