summaryrefslogtreecommitdiffstats
path: root/booty/ppc.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-03 14:38:39 -0500
committerChris Lumens <clumens@redhat.com>2009-03-04 15:37:05 -0500
commit4b4588cce875b134b8d2c944632f7e2343d62431 (patch)
tree16a21e10b6d0c0ecfd0243f14953d02c9ed45cc5 /booty/ppc.py
parent6866ce610d95fdccbe214ccac3c90d68eeb71494 (diff)
downloadanaconda-4b4588cce875b134b8d2c944632f7e2343d62431.tar.gz
anaconda-4b4588cce875b134b8d2c944632f7e2343d62431.tar.xz
anaconda-4b4588cce875b134b8d2c944632f7e2343d62431.zip
Use anaconda's provided rootDevice instead of performing another lookup.
Diffstat (limited to 'booty/ppc.py')
-rw-r--r--booty/ppc.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/booty/ppc.py b/booty/ppc.py
index 438813360..23662b91f 100644
--- a/booty/ppc.py
+++ b/booty/ppc.py
@@ -28,11 +28,8 @@ class ppcBootloaderInfo(bootloaderInfo):
try:
device = self.storage.fsset.mountpoints["/boot"]
except KeyError:
- try:
- # Try / if we don't have this we're not going to work
- device = self.storage.fsset.mountpoints["/"]
- except KeyError:
- return retval
+ # Try / if we don't have this we're not going to work
+ device = self.storage.fsset.rootDevice
retval.append(device.path)
else:
@@ -54,7 +51,7 @@ class ppcBootloaderInfo(bootloaderInfo):
if not os.path.isdir(instRoot + "/boot/etc"):
os.mkdir(instRoot + "/boot/etc")
except KeyError:
- bootDev = self.storage.fsset.mountpoints["/"]
+ bootDevice = self.storage.fsset.rootDevice
cfPath = "/boot"
cf = "/etc/yaboot.conf"
@@ -107,7 +104,7 @@ class ppcBootloaderInfo(bootloaderInfo):
f.write("\n")
- rootDev = self.storage.fsset.mountpoints["/"]
+ rootDev = self.storage.fsset.rootDevice
for (label, longlabel, version) in kernelList:
kernelTag = "-" + version