diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-03 14:38:39 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-04 15:37:05 -0500 |
commit | 4b4588cce875b134b8d2c944632f7e2343d62431 (patch) | |
tree | 16a21e10b6d0c0ecfd0243f14953d02c9ed45cc5 /booty/s390.py | |
parent | 6866ce610d95fdccbe214ccac3c90d68eeb71494 (diff) | |
download | anaconda-4b4588cce875b134b8d2c944632f7e2343d62431.tar.gz anaconda-4b4588cce875b134b8d2c944632f7e2343d62431.tar.xz anaconda-4b4588cce875b134b8d2c944632f7e2343d62431.zip |
Use anaconda's provided rootDevice instead of performing another lookup.
Diffstat (limited to 'booty/s390.py')
-rw-r--r-- | booty/s390.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/booty/s390.py b/booty/s390.py index 32d28b463..95ac140a8 100644 --- a/booty/s390.py +++ b/booty/s390.py @@ -27,10 +27,7 @@ class s390BootloaderInfo(bootloaderInfo): if not os.access(instRoot + sl.getPath(), os.R_OK): lilo.delImage(label) - try: - rootDev = self.storage.fsset.mountpoints["/"] - except KeyError: - raise RuntimeError, "Installing zipl, but there is no root device" + rootDev = self.storage.fsset.rootDevice if rootDev == defaultDev: lilo.addEntry("default", kernelList[0][0]) @@ -124,7 +121,7 @@ class s390BootloaderInfo(bootloaderInfo): def writeZipl(self, instRoot, bl, kernelList, chainList, defaultDev, justConfigFile): images = bl.images.getImages() - rootDev = self.storage.fsset.mountpoints["/"] + rootDev = self.storage.fsset.rootDevice cf = '/etc/zipl.conf' self.perms = 0600 |