Still scan the list of devices from udev, but call udev_device_get_by_path() to return the full /dev/disk/by-path link. If we do not have one, return None. Caller should account for lack of a by-path link. Resolves: rhbz#589713 Resolves: rhbz#589717 --- storage/devices.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/devices.py b/storage/devices.py index 7e23b9e..d2bf5da 100644 --- a/storage/devices.py +++ b/storage/devices.py @@ -152,9 +152,9 @@ def deviceNameToDiskByPath(deviceName=None): for dev in udev_get_block_devices(): if udev_device_get_name(dev) == deviceName: - return udev_device_get_path(dev) + return udev_device_get_by_path(dev) - return deviceName + return None class Device(object): -- 1.6.6.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list