This won't work when the device lives under /dev/mapper (dmraid for example). You need to use: "devicetree.getDeviceByName(bl.getDevice()).path" the trick is how to get to the devicetree (most of the time using self.storage.devicetree does the trick). Regards, Hans On 03/27/2009 01:33 PM, Joel Granados Moreno wrote:
We must append the path to the retval. Since device is a string containing the rest of the path, we only need to prepend "/dev" --- booty/ppc.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/booty/ppc.py b/booty/ppc.py index 706f198..b574336 100644 --- a/booty/ppc.py +++ b/booty/ppc.py @@ -35,7 +35,7 @@ class ppcBootloaderInfo(bootloaderInfo): retval.append(device.path) else: if bl.getDevice(): - retval.append(bl.getDevice().path) + retval.append(os.path.join("/dev", bl.getDevice())) return retval
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list