[rhel7-branch] kickstart block device resolution (#1047338)

David Lehman dlehman at redhat.com
Tue Feb 18 00:28:53 UTC 2014


Basically, anywhere we were using udev_resolve_devspec or
DeviceTree.getDeviceByName we can gain a great deal of power by
instead using DeviceTree.resolveDevice. It can handle device names,
labels, UUIDs, it accounts for pending changes, and it can resolve
MD and DM devices by name (which udev_resolve_devspec cannot do).

I removed the loop that tries to prepend "mapper/" on disk names
because it isn't necessary and it also doesn't do anything useful.
(It raises an exception in the first iteration if it doesn't find
the disk instead of continuing on to try the other name.)

I could trim this down to the base bones for rhel7-branch if
necessary. That would be chunks 3, 5, and the piece of chunk 4
that switches from using getDeviceByName to resolveDevice.



More information about the anaconda-patches mailing list