Re: grub: eval vars for linux command / write config agnostic to other disks

2020-03-28 Thread Felix Miata
Pascal-liste composed on 2020-03-28 21:20 (UTC+0100): > Felix Miata in English composed: >> Pascal Hambourg composed on 2020-03-28 20:49 (UTC+0100): >>> The kernel >>> itself does not understand UUID or LABEL. >> ... >>> You'd rather use a persistent identifier that the kernels kows about : >>>

Re: grub: eval vars for linux command / write config agnostic to other disks

2020-03-28 Thread Pascal Hambourg
Le 28/03/2020 à 21:47, Felix Miata a écrit : What's a LABEL or PARTLABEL or UUID for if the kernel doesn't understand it? As I wrote, they are meant for use by an initramfs. Without an initramfs, the kernel must mount the root filesystem by itself. With an initramfs, the kernel mounts the

Re: grub: eval vars for linux command / write config agnostic to other disks

2020-03-28 Thread Pascal-liste
Le 28/03/2020 à 21:04, Felix Miata a écrit : Pascal Hambourg composed on 2020-03-28 20:49 (UTC+0100): The kernel itself does not understand UUID or LABEL. ... You'd rather use a persistent identifier that the kernels kows about : PARTUUID. Get the value with blkid. Can't remember whether

Re: grub: eval vars for linux command / write config agnostic to other disks

2020-03-28 Thread Felix Miata
Pascal Hambourg composed on 2020-03-28 20:49 (UTC+0100): > The kernel > itself does not understand UUID or LABEL. ... > You'd rather use a persistent identifier that the kernels kows about : > PARTUUID. Get the value with blkid. > Can't remember whether the kernel knows about PARTLABEL too,

grub: eval vars for linux command / write config agnostic to other disks

2020-03-28 Thread Toerless Eckert
I would like to have a grub config that will work even if the disk is re-plugged into a different SATA port and independent of whether other disks are plugged in. Lets say i today have this config: set root='hd5,gpt2' search --no-floppy --fs-uuid --set=root 4bdb3675-62ff-499f-9fc4-e5fd8c7ba777

Re: grub: eval vars for linux command / write config agnostic to other disks

2020-03-28 Thread Pascal Hambourg
Le 28/03/2020 à 17:56, Toerless Eckert a écrit : I would like to have a grub config that will work even if the disk is re-plugged into a different SATA port and independent of whether other disks are plugged in. Lets say i today have this config: set root='hd5,gpt2' search --no-floppy

Re: grub: eval vars for linux command / write config agnostic to other disks

2020-03-28 Thread jmh6
Hi Pascal, Thanks for your clear explanation. Finally makes sense to me. One more question. Initrd is what actually reads and executes grub and friends? In the system I am running, antiX, initrd is much bigger than vmlinuz. On the other hand, Knoppix 7.2 has a larger kernel and a