summaryrefslogtreecommitdiffstats
path: root/booty/sparc.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-04 14:32:07 -0500
committerChris Lumens <clumens@redhat.com>2009-03-04 15:37:05 -0500
commit596ffcad57ec5f51238a6c295cc3eece95388ae4 (patch)
tree69815b759ecba2741f4b488f8f54e93bdb15d52d /booty/sparc.py
parent1983df2711bef5e8c0f9b5730a15ac665a9f0164 (diff)
downloadanaconda-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/sparc.py')
-rw-r--r--booty/sparc.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/booty/sparc.py b/booty/sparc.py
index 1de44927d..086f9786a 100644
--- a/booty/sparc.py
+++ b/booty/sparc.py
@@ -7,7 +7,7 @@ class sparcBootloaderInfo(bootloaderInfo):
chainList, defaultDev, justConfigFile):
try:
- bootDev = storage.fsset.mountpoints["/boot"]
+ bootDev = self.storage.fsset.mountpoints["/boot"]
mf = '/silo.message'
cf = "/boot/silo.conf"
@@ -16,7 +16,7 @@ class sparcBootloaderInfo(bootloaderInfo):
if not os.path.isdir(instRoot + "/boot"):
os.mkdir(instRoot + "/boot")
except KeyError:
- bootDev = storage.fsset.mountpoints["/"]
+ bootDev = self.storage.fsset.mountpoints["/"]
cf = "/etc/silo.conf"
mfdir = '/etc'
@@ -45,7 +45,7 @@ class sparcBootloaderInfo(bootloaderInfo):
f.write("default=%s\n" % (kernelList[0][0],))
f.write("\n")
- rootDev = storage.fsset.mountpoints["/"]
+ rootDev = self.storage.fsset.mountpoints["/"]
for (label, longlabel, version) in kernelList:
kernelTag = "-" + version
@@ -118,8 +118,8 @@ class sparcBootloaderInfo(bootloaderInfo):
else:
self.noKernelsWarn(intf)
- def __init__(self):
- bootloaderInfo.__init__(self)
+ def __init__(self, storage):
+ bootloaderInfo.__init__(self, storage)
self.useSiloVal = 1
self.kernelLocation = "/boot"
self._configdir = "/etc"