summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyanaconda/bootloader.py13
-rw-r--r--pyanaconda/iutil.py2
2 files changed, 8 insertions, 7 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 16f984855..0ca491aef 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1948,6 +1948,10 @@ class ZIPL(BootLoader):
image_label_attr = "short_label"
preserve_args = ["cio_ignore"]
+ def __init__(self, platform=None):
+ super(ZIPL, self).__init__(platform=platform)
+ self.stage1_name = None
+
#
# configuration
#
@@ -1993,7 +1997,6 @@ class ZIPL(BootLoader):
#
def install(self):
- # DWL FIXME: resolve the boot device to a StorageDevice from storage
buf = iutil.execWithCapture("zipl", [],
stderr="/dev/tty5",
root=ROOT_PATH,
@@ -2005,12 +2008,10 @@ class ZIPL(BootLoader):
# 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_name = re.sub("(\s\(.+\))?\.$", "", name)
- self.stage1_device = device
+ if not self.stage1_name:
+ raise BootLoaderError("could not find IPL device")
class SILO(YabootSILOBase):
name = "SILO"
diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index 9d3b433f5..b39d4f46f 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -862,7 +862,7 @@ def numeric_type(num):
def reIPL(anaconda, loader_pid):
try:
- ipldev = anaconda.bootloader.stage1_device.name
+ ipldev = anaconda.storage.bootloader.stage1_name
except AttributeError:
message = _("Error determining boot device's disk name")
log.warning(message)