diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-04 14:32:07 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-04 15:37:05 -0500 |
commit | 596ffcad57ec5f51238a6c295cc3eece95388ae4 (patch) | |
tree | 69815b759ecba2741f4b488f8f54e93bdb15d52d /booty/s390.py | |
parent | 1983df2711bef5e8c0f9b5730a15ac665a9f0164 (diff) | |
download | anaconda-596ffcad57ec5f51238a6c295cc3eece95388ae4.tar.gz anaconda-596ffcad57ec5f51238a6c295cc3eece95388ae4.tar.xz anaconda-596ffcad57ec5f51238a6c295cc3eece95388ae4.zip |
Add a storage instance to all bootloaderInfo subclasses.
We could pass storage around to all the various functions that will need it,
but that's a big mess. It's far easier to just set this when we create the
bootloaderInfo class and never worry about it again.
Diffstat (limited to 'booty/s390.py')
-rw-r--r-- | booty/s390.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/booty/s390.py b/booty/s390.py index a96ac0033..32d28b463 100644 --- a/booty/s390.py +++ b/booty/s390.py @@ -28,7 +28,7 @@ class s390BootloaderInfo(bootloaderInfo): lilo.delImage(label) try: - rootDev = storage.fsset.mountpoints["/"] + rootDev = self.storage.fsset.mountpoints["/"] except KeyError: raise RuntimeError, "Installing zipl, but there is no root device" @@ -124,7 +124,7 @@ class s390BootloaderInfo(bootloaderInfo): def writeZipl(self, instRoot, bl, kernelList, chainList, defaultDev, justConfigFile): images = bl.images.getImages() - rootDev = storage.fsset.mountpoints["/"] + rootDev = self.storage.fsset.mountpoints["/"] cf = '/etc/zipl.conf' self.perms = 0600 @@ -173,8 +173,8 @@ class s390BootloaderInfo(bootloaderInfo): justConfig | (not self.useZiplVal)) out = self.writeChandevConf(bl, instRoot) - def __init__(self): - bootloaderInfo.__init__(self) + def __init__(self, storage): + bootloaderInfo.__init__(self, storage) self.useZiplVal = 1 # only used on s390 self.kernelLocation = "/boot/" self.configfile = "/etc/zipl.conf" |