
On 2016-10-25 16:08, Anton Aylward wrote:
On 10/25/2016 09:55 AM, Carlos E. R. wrote:
On 2016-10-25 15:45, Anton Aylward wrote:
On 10/25/2016 08:33 AM, Olaf Hering wrote:
Am 25. Oktober 2016 12:53:59 MESZ, schrieb Anton Aylward <opensuse@antonaylward.com>:
I don't even have to edit the on-disk grub.cfg or do a new mkinitrd.
Since both grub2 and dracut ignore system settings (they enforce by-uuid) its helpful to rerun mkinitrd, grub-mkconfig and grub-install to update their view on the system.
Could you please expand/document/reference that assertion.
I've been using, for example, grub2, for many years and booting with "by-label" in the config.
The kernel parameters in grub use label, yes, but the lines belonging to grub use uuid.
I'm sorry but that doesn't make sense to me. Could you say that differently please. Perhaps illustrate/example.
/other/Gestor/boot/grub2/custom.cfg: menuentry 'Gestor (por uuid)' --id cer-gestor-001 { insmod part_gpt insmod ext2 set root='hd1,gpt2' if search --no-floppy --fs-uuid --set=root 943d650b-ea9c-4fbd-9d2c-993abae7655b ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi } The "set root" has to use uuid. /other/Gestor/boot/grub2/grub.cfg: ### BEGIN /etc/grub.d/10_linux ### menuentry 'openSUSE Leap 42.1' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-943d650b-ea9c-4fbd-9d2c-993abae7655b' { savedefault load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 943d650b-ea9c-4fbd-9d2c-993abae765 else search --no-floppy --fs-uuid --set=root 943d650b-ea9c-4fbd-9d2c-993abae7655b fi echo 'Loading Linux 4.1.27-24-default ...' linux /boot/vmlinuz-4.1.27-24-default root=UUID=943d650b-ea9c-4fbd-9d2c-993abae7655b resume=/dev/disk/by-label/Swap_0 splash=verbose console=tty1 showopts echo 'Loading initial ramdisk ...' initrd /boot/initrd-4.1.27-24-default } Same here. Only in the line: "linux /boot/ ..." you can replace "root=uuid=..." with the equivalent for labels. Like the "resume".
I'm still experimenting with Dracut. I have no argument with the permanence and uniqueness of UUDI, despite what Linda says, but my point about intelligibility of those long strings holds.
You can change manually the uuid, and write a label instead, while it is a uuid. Or use an hybrid.
I'm unclear by the "while it is a uuid". Either you've changed it or not.
uuid=943d650b-ea9c-4fbd-9d2c-main_gestor Long enough to be unique. You could replicate the partition, keep the "u-label", but change the random part on the left. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)