summaryrefslogtreecommitdiffstats
path: root/pyanaconda/bootloader.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2012-08-03 10:35:34 -0400
committerChris Lumens <clumens@redhat.com>2012-08-03 10:35:34 -0400
commit3671cc86e836990077820556387cbb416e709bbd (patch)
treec8754fc1809bd175304f51bb11776022e9b7ec9d /pyanaconda/bootloader.py
parented8bf92fc65050f54463df959a9209ae43af0c54 (diff)
parentdb84929284ce85a7af580738551fcc6e172cc690 (diff)
downloadanaconda-3671cc86e836990077820556387cbb416e709bbd.tar.gz
anaconda-3671cc86e836990077820556387cbb416e709bbd.tar.xz
anaconda-3671cc86e836990077820556387cbb416e709bbd.zip
Merge branch 'master' into newui-merge
Conflicts: Makefile.am anaconda data/systemd/anaconda.target pyanaconda/bootloader.py pyanaconda/constants.py pyanaconda/iutil.py pyanaconda/kickstart.py pyanaconda/network.py pyanaconda/vnc.py scripts/makeupdates
Diffstat (limited to 'pyanaconda/bootloader.py')
-rw-r--r--pyanaconda/bootloader.py22
1 files changed, 21 insertions, 1 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 971c0dc16..ed8040ff5 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1475,6 +1475,10 @@ class GRUB2(GRUB):
def write_config(self):
self.write_config_console(None)
+ # See if we have a password and if so update the boot args before we
+ # write out the defaults file.
+ if self.password or self.encrypted_password:
+ self.boot_args.add("rd.shell=0")
self.write_defaults()
# if we fail to setup password auth we should complete the
@@ -1658,6 +1662,8 @@ class YabootSILOBase(BootLoader):
continue
args = Arguments()
+ if self.password or self.encrypted_password:
+ args.add("rd.shell=0")
if image.initrd:
initrd_line = "\tinitrd=%s/%s\n" % (self.boot_prefix,
image.initrd)
@@ -1986,7 +1992,21 @@ class ZIPL(BootLoader):
# DWL FIXME: resolve the boot device to a StorageDevice from storage
buf = iutil.execWithCapture("zipl", [],
stderr="/dev/tty5",
- root=ROOT_PATH)
+ root=ROOT_PATH,
+ fatal=True)
+ 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"