10.07.2017 02:11, Istvan Gabor пишет:
Hello:
I would like to use disk names according to /dev/disk/by-id entries in my grub2 config and initrd image files instead of uuids in Leap 42.2 How to configure grub2 and mkinitrd/dracut to use those?
grub2 does not have anything similar. It can only identify filesystems by UUID or as fallback by creating unique file on a filesystem and searching for it.
I have set GRUB_DISABLE_LINUX_UUID=true in /etc/default/grub file and run grub2-mkconfig -o /boot/grub2/grub.cfg, still there are several lines in boot/grub2/grub.cfg showing uuids of my disks.
Without knowing what these several lines are it is impossible to give any comment.
I also looked at dracut manual but could not find anything regarding disk-id. I've run mkinitrd and it resulted
dracut: Stored kernel commandline: dracut: resume=UUID=ac583745-0aa6-4b59-98ab-96d7bd1d7664 dracut: root=UUID=88e3e501-edac-4b4c-bff8-bc52ba8952f2
I want root=/dev/disk/by-id/..... instead of these.
You can't use default grub-mkconfig scripts for it; they either add UUID or canonical device name. Either add this line manually or repace /etc/grub.d/10_linux with your version. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org