Artix Linux Forum

Artix Linux => System => Topic started by: Gladdle on 27 February 2021, 18:26:29

Title: [SOLVED] grub with kernel AND kernel-lts and the version number in the filemane.
Post by: Gladdle on 27 February 2021, 18:26:29
Hi there, i have an issue but i cant find anything bout it on the web.
I use kernel and kernel-lts, both files i found in the /boot/ directory. Is there a possibility, that the version number in the filename also appears? Before Artix i have used Gentoo with the programm "genkernel", there was an option in the config file. Is something like that in Arch / Artix aviable, too?

And also i can't find something to modify GRUB to show both kenels so i can choice which one i'll use to boot.
Title: Re: grub with kernel AND kernel-lts and the version number in the filemane.
Post by: ####### on 27 February 2021, 22:42:04
Have you run # update-grub ? Then you can set the default kernel in /etc/default/grub something like this:
GRUB_DEFAULT="1>4"
Look in /boot/grub/grub.cfg and count the menu lines to get the right numbers, and you start counting from 0 not 1.
The > and quotes let you select a kernel to boot from the advanced options submenu, so you don't need to make a custom entry for the main menu, although you could do that too if you wanted. Run update-grub again afterwards. Pacman doesn't run update-grub after installing kernels to save time on updates when it usually isn't needed, you need to do it manually.
Title: Re: grub with kernel AND kernel-lts and the version number in the filemane.
Post by: alium on 27 February 2021, 22:44:13
could you express yourself a little more precisely? your topic is chaotic, what you need, i not understood. genkernel archlinux have not, read this:
https://wiki.archlinux.org/index.php/GRUB
https://wiki.archlinux.org/index.php/Mkinitcpio

https://wiki.archlinux.org and https://wiki.artixlinux.org will your best friend now  ;)  welcome in archlinux's world
Title: Re: grub with kernel AND kernel-lts and the version number in the filemane.
Post by: linuxer on 28 February 2021, 02:37:49
We pretty comprehend the fact that, English is not everyone's native language.

But, in any case, we need to comprehend, what are you talking about, so to assist you further.

Therefore, can you provide the following?
Title: Re: grub with kernel AND kernel-lts and the version number in the filemane.
Post by: Gladdle on 28 February 2021, 11:58:53
Yes, english isn't my native language, so sometimes i have problems to explain what i really need, i am sorry.
I have corrected the wrong sentence in the first post:
Is there a possibility, that the filename also appears? =>  Is there a possibility, that the version number in the filename also appears?
I mean something like "/boot/vmlinuz-linux-lts-5.10.18-1"

With grub i mean something like:
Code: [Select]
Linux Artix
Linux Artix (LTS kernel)
in the grub boot menu.
Title: Re: grub with kernel AND kernel-lts and the version number in the filemane.
Post by: linuxer on 28 February 2021, 19:03:09
Yes, english isn't my native language, so sometimes i have problems to explain what i really need, i am sorry.
I have corrected the wrong sentence in the first post:
Is there a possibility, that the filename also appears? =>  Is there a possibility, that the version number in the filename also appears?
I mean something like "/boot/vmlinuz-linux-lts-5.10.18-1"

With grub i mean something like:
Code: [Select]
Linux Artix
Linux Artix (LTS kernel)
in the grub boot menu.
In the grub boot menu, you can edit the entries, in too ways:


Title: Re: grub with kernel AND kernel-lts and the version number in the filemane.
Post by: Gladdle on 28 February 2021, 19:55:52
I have found the Problem with GRUB, i have Edited "/etc/default/grub" and added the Line "GRUB_ENABLE_SUBMENU=false", then i removed the fallback option from mkcpio. So there are two Options to boot in GRUB: linux and linux-lts.
Thank you.