diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-08-07 15:49:52 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-08-07 15:49:52 +0200 |
commit | 2694e31a34d7f89ab84d59fbdfcffd3986cc1fcb (patch) | |
tree | defe62e52170b68e109b8dcdcce6c58f2776fa2a /livecd.py | |
parent | 6c6d1551a5e02f17ad8da30eec98b65706f088ae (diff) | |
download | anaconda-2694e31a34d7f89ab84d59fbdfcffd3986cc1fcb.tar.gz anaconda-2694e31a34d7f89ab84d59fbdfcffd3986cc1fcb.tar.xz anaconda-2694e31a34d7f89ab84d59fbdfcffd3986cc1fcb.zip |
Make all sysfs path's be _without_ /sys prefix (#516168)
Most sysfs path handling code expects / uses sysfs path's without the
/sys prefix (as udev does internally). There were 4 functions which were
exceptions to this:
udev_enumerate_devices
udev_enumerate_block_devices
udev_get_device
udev_get_block_device
These expected resp. returned sysfs path's with /sys prefix. This
inconsistency causes the backtrace in bug 516168. Rather then applying a
simple fix for this, this patch makes the sysfs path usage consistent
everywhere, to avoid issues like this in the future.
This patch adjust the above 4 functions and all callers.
Diffstat (limited to 'livecd.py')
-rw-r--r-- | livecd.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -246,7 +246,7 @@ class LiveCDCopyBackend(backend.AnacondaBackend): iutil.notify_kernel("/sys%s" %rootDevice.sysfsPath) storage.udev.udev_settle() rootDevice.updateSysfsPath() - info = storage.udev.udev_get_block_device("/sys%s" % rootDevice.sysfsPath) + info = storage.udev.udev_get_block_device(rootDevice.sysfsPath) rootDevice.format.uuid = storage.udev.udev_device_get_uuid(info) log.info("reset the rootdev (%s) to have a uuid of %s" %(rootDevice.sysfsPath, rootDevice.format.uuid)) |