You are not logged in.

#1 2024-02-05 04:16:07

jojo06
Member
Registered: 2023-11-04
Posts: 388

[SOLVED]Boot options and displaying uname

I realize when you install second kernel, its listing at the top in bootloader. And with auto, its booting from first option (0. element).

Lets say, i have linux and linux-lts installed, for booting linux; my boot preference will be `GRUB_DEFAULT=1>2` right ?

I booted the initramfs intentionally, the output for uname, uname -r, uname -a are same. Only lts has difference. Even arch1-2 is same. I thought it will be arch 1-3 but in both cases it was 1-2**. How can i now did i booted Arch initramfs or Arch Linux ?
And what is Arch Linux initramfs in boot options ?

Is this correct; if a Arch user has only linux kernel installed it will display in uname arch1-1 if second is installed it will/may 1-2 | 2-1 | 2-2 ?

**

Bootloader:
Arch Linux-Lts
Arch Linux-Lts (initramfs)
Arch Linux
Arch Linux (initramfs)

Last edited by jojo06 (2024-02-05 21:29:39)

Offline

#2 2024-02-05 04:20:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED]Boot options and displaying uname

You're confused on what those options are. One uses the standard initramfs, one uses the fallback initramfs, which is just an initramfs without the autodetect hook so it has all drivers and will take slightly longer to boot.

Online

#3 2024-02-05 06:39:05

jojo06
Member
Registered: 2023-11-04
Posts: 388

Re: [SOLVED]Boot options and displaying uname

And seperated modules right ? modprobe does not recognized added in Linux in Lts, is it same with initramfs ? Can it be use like rescue mod ?

From uname we cant detect the initramfs then. What about GRUB_DEFAULT ?

Offline

#4 2024-02-05 09:38:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Re: [SOLVED]Boot options and displaying uname

From uname we cant detect the initramfs then.

No. The initramfs you choose becomes irrelevant after the initial boot phase.

I've serious problems parsing the first line of your post.

Offline

#5 2024-02-05 11:02:03

jojo06
Member
Registered: 2023-11-04
Posts: 388

Re: [SOLVED]Boot options and displaying uname

seth wrote:

From uname we cant detect the initramfs then.

No. The initramfs you choose becomes irrelevant after the initial boot phase.

I've serious problems parsing the first line of your post.

Bootloader:
Arch Linux
Arch Linux (initramfs)

After install lts

Bootloader:
Arch Linux-Lts << 0 (first element from array)
Arch Linux-Lts (initramfs)
Arch Linux
Arch Linux (initramfs)

And what is the arch1-1 or arch2-1 ?

Offline

#6 2024-02-05 11:07:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Re: [SOLVED]Boot options and displaying uname

Is your native tongue covered by deepl.com ?

Offline

#7 2024-02-05 12:17:59

jojo06
Member
Registered: 2023-11-04
Posts: 388

Re: [SOLVED]Boot options and displaying uname

About that; i used to use it, but you found that translation nonsense too. Its odd when i try to translate yours to my native tongue, its completely no meaning, pointless. I understand better without it. Also its kinda better to typing without it. But if its that bad, i might need to go for another translation.

Let me try again.

When i run command `uname -r` i get this output:

6.7.3-arch1-2

The last digits in the output (which is 1-2) what are the meaning of them ?

Imagine you are in the bootloader. You will see two options:

Arch Linux
Arch Linux Advanced

Inside of Arch Linux Advanced the kernels will be listed. Lets assume its only Linux kernel installed, in this case Arch Linux Advanced options will display this:

Arch Linux
Arch Linux (initramfs)

And if we install linux-lts, it will display like this:

Arch Linux LTS
Arch Linux LTS (initramfs)
Arch Linux
Arch Linux (initramfs)

If we want to boot from Arch Linux LTS we have to choose "0" for his id (element number). In code language the arrays first elements is 0 not 1.

So in this case the GRUB_DEFAULT=0 will be. But (i guess thats the logic) the first array (bootloader select options) will be Arch Linux and Arch Linux Advanced, there for we will go for Arch Linux Advanced (which will be id=1) and from there going for first kernel -LTS- (which will be 0) : the conf will be GRUB_DEFAULT=1>0 for this.

Is this right ? And i figure it out to disable this menu stuff, all listing in once, and since all listed in once, GRUB_DEFAULT=2 is doing the trick.

Last edited by jojo06 (2024-02-05 12:21:22)

Offline

#8 2024-02-05 13:21:02

willemw
Member
Registered: 2013-02-19
Posts: 116

Re: [SOLVED]Boot options and displaying uname

What I do is, in file /etc/default/grub, set the default grub entry by "menu item name", not by the "menu item index number" (because /boot is on Btrfs and is read-only in Grub):

GRUB_DEFAULT='Advanced options for Arch Linux>Arch Linux, with Linux linux'
#GRUB_DEFAULT='Advanced options for Arch Linux>Arch Linux, with Linux linux-lts'

Offline

#9 2024-02-05 14:31:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Re: [SOLVED]Boot options and displaying uname

The last digits in the output (which is 1-2) what are the meaning of them ?

archlinux version tag, the "2" is the second build of the kernel. This is completely irrelevant for general use or the grub behavior.

You're looking for https://wiki.archlinux.org/title/GRUB/T … le_entries but willemw's approach will work and apparently you figured how to select indexes numerically and how to flatten the list?
Is there an open quiestion?
Otherwise and please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#10 2024-02-05 15:08:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,231

Re: [SOLVED]Boot options and displaying uname

Mod note: Not an Arch discussion, moving to NC

Offline

Board footer

Powered by FluxBB