summaryrefslogtreecommitdiffstats
path: root/pyanaconda/bootloader.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-06-26 18:05:45 -0500
committerDavid Lehman <dlehman@redhat.com>2012-07-03 10:41:25 -0500
commit19624e0b605ab2d393fdc58d2d1f58ce9482300d (patch)
tree2ec89feb99a8bc4e7549386530acbbddf1e47109 /pyanaconda/bootloader.py
parentba14163f476a810d33a08ac94b8486d475f7eedc (diff)
downloadanaconda-19624e0b605ab2d393fdc58d2d1f58ce9482300d.tar.gz
anaconda-19624e0b605ab2d393fdc58d2d1f58ce9482300d.tar.xz
anaconda-19624e0b605ab2d393fdc58d2d1f58ce9482300d.zip
Cleanups to restore things after the merge of master onto newui.
Diffstat (limited to 'pyanaconda/bootloader.py')
-rw-r--r--pyanaconda/bootloader.py25
1 files changed, 4 insertions, 21 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 658edba61..991c8de80 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -980,8 +980,8 @@ class GRUB(BootLoader):
packages = ["grub"]
- def __init__(self, storage):
- super(GRUB, self).__init__(storage)
+ def __init__(self, platform=None):
+ super(GRUB, self).__init__(platform=platform)
self.encrypted_password = ""
#
@@ -1357,8 +1357,8 @@ class GRUB2(GRUB):
stage2_raid_levels = [mdraid.RAID0, mdraid.RAID1, mdraid.RAID4,
mdraid.RAID5, mdraid.RAID6, mdraid.RAID10]
- def __init__(self, storage):
- super(GRUB2, self).__init__(storage)
+ def __init__(self, platform=None):
+ super(GRUB2, self).__init__(platform=platform)
self.boot_args.add("$([ -x /usr/sbin/rhcrashkernel-param ] && "\
"/usr/sbin/rhcrashkernel-param || :)")
@@ -1708,9 +1708,6 @@ class Yaboot(YabootSILOBase):
stage2_device_types = ["partition", "mdarray"]
stage2_device_raid_levels = [mdraid.RAID1]
- def __init__(self, storage):
- BootLoader.__init__(self, storage)
-
#
# configuration
#
@@ -2000,20 +1997,6 @@ class ZIPL(BootLoader):
buf = iutil.execWithCapture("zipl", [],
stderr="/dev/tty5",
root=ROOT_PATH)
- for line in buf.splitlines():
- if line.startswith("Preparing boot device: "):
- # Output here may look like:
- # Preparing boot device: dasdb (0200).
- # Preparing boot device: dasdl.
- # We want to extract the device name and pass that.
- name = re.sub(".+?: ", "", line)
- name = re.sub("(\s\(.+\))?\.$", "", name)
- device = self.storage.devicetree.getDeviceByName(name)
- if not device:
- raise BootLoaderError("could not find IPL device")
-
- self.stage1_device = device
-
class SILO(YabootSILOBase):
name = "SILO"