You are not logged in.

#1 2021-03-28 08:52:49

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Do I need two kernels? [SOLVED]

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

#2 2021-03-28 09:45:49

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,842
Website

Re: Do I need two kernels? [SOLVED]

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

#3 2021-03-28 10:10:51

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,293
Website

Re: Do I need two kernels? [SOLVED]

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

#4 2021-03-28 10:37:39

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

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

#5 2021-03-28 10:41:51

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,842
Website

Re: Do I need two kernels? [SOLVED]


Jin, Jîyan, Azadî

Offline

#6 2021-03-28 10:57:18

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

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

#7 2021-03-28 11:48:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,525

Re: Do I need two kernels? [SOLVED]

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

#8 2021-03-28 12:40:48

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

Thnx for ur reply...can u pls eloborate so that I can follow ur instructions

Offline

#9 2021-03-28 12:41:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,525

Re: Do I need two kernels? [SOLVED]

They were linked earlier.

Offline

#10 2021-03-28 12:51:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,380
Website

Re: Do I need two kernels? [SOLVED]

In addition to the previous links, you should also see the second bullet point here.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2021-03-28 13:04:59

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

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

#12 2021-03-28 13:30:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,525

Re: Do I need two kernels? [SOLVED]

... 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

#13 2021-03-28 13:47:33

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

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

#14 2021-03-28 14:08:30

seth
Member
Registered: 2012-09-03
Posts: 65,465

Offline

#15 2021-03-28 14:14:07

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

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

#16 2021-03-28 14:22:31

seth
Member
Registered: 2012-09-03
Posts: 65,465

Re: Do I need two kernels? [SOLVED]

Write the grub.cfg and move the kernels you want  into the menu you want.

Offline

#17 2021-03-28 14:32:17

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

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

#18 2021-03-28 14:41:52

seth
Member
Registered: 2012-09-03
Posts: 65,465

Re: Do I need two kernels? [SOLVED]

Too bad.

Offline

#19 2021-03-29 02:31:56

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

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

#20 2021-03-29 05:51:39

seth
Member
Registered: 2012-09-03
Posts: 65,465

Re: Do I need two kernels? [SOLVED]

vim

Offline

#21 2021-03-30 14:02:43

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

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

#22 2021-03-30 14:14:18

seth
Member
Registered: 2012-09-03
Posts: 65,465

Re: Do I need two kernels? [SOLVED]

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

#23 2021-03-30 14:31:44

Computer Email
Member
Registered: 2021-03-04
Posts: 29

Re: Do I need two kernels? [SOLVED]

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

#24 2021-03-30 14:38:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,525

Re: Do I need two kernels? [SOLVED]

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

#25 2021-03-30 14:41:43

seth
Member
Registered: 2012-09-03
Posts: 65,465

Re: Do I need two kernels? [SOLVED]

Sanity check:

stat /boot/grub/grub.cfg.pacsave

Offline

Board footer

Powered by FluxBB