Change disk layout from BY-ID to UUID


I honestly think the BY-ID disk identification should be changed or at least have an option for the advanced user, in a cloud world is not nice to create a VM and then not being able to export it because the disk ID will change, VMs should be exported just out of the box, and it can be done using blikd UUID’s.

Please change my mind :slight_smile:

I’m not sure what’s the issue here.

When using Yast partitioner, including during install, you can click on mount options. And that allows you to set what is used for mounting the disk.

And, yes, I normally use UUID except for LVM volumes where I use device-name.

I too fail to understand the question. Out of the box now as for a number of years has been virtually entirely by UUID. “Advanced” users do have other options. Virtually all my Linux native filesystem mounting is done by LABEL, as it has been for at least 5 years.

I suppose that somebody who has been updating previous versions, instead of doing clean installs, might still be using “by-id” device references.

One of my boxes has:

UUID=7739-823F                             /boot/efi                  vfat   defaults                      0  0
UUID=526e2128-0a16-4246-b08f-91160007fc26  /                          ext4   defaults                      0  0
UUID=18e63751-b483-4422-b10d-6b896681ee64  /home                      ext4   defaults                      0  0
UUID=08fb3e4e-133d-4b2d-96a0-0a1e0a3381d8  /home-HDD                  ext4   defaults                      0  0
UUID=dfcc0f89-5233-4c92-93f2-666c40df6aff  /Tumbleweed-SSD            ext4   noauto                        0  0
UUID=17795bce-b153-47bf-b60c-2a6d431553e7  swap                       swap   defaults                      0  0

With openSUSE you can have it your way. Have a lot of fun.

GRUB2 is still mapped by-id, is there any way to change GRUB2 behaviour?

It depends on how industrious you are or want to be. This is the head of a TW /boot/grub2/custom.cfg on one of my UEFI boxes:

menuentry "memtest86 7.4 EFI" {
	search --no-floppy --label --set=root K25P01ESP
	chainloader /mt74x64.efi
menuentry "openSUSE TW defkernel" {
	search --no-floppy --set=root --hint-bios=hd0,gpt7 --label k25p07stw
	linux	/boot/vmlinuz root=LABEL=k25p07stw noresume
	initrd	/boot/initrd

I’m not seeing that on my systems.

Grub can get “by-id” information from “/etc/defaut/grub” (often the “resume=” parameter).

Yes, it can be done: More at: