summaryrefslogtreecommitdiffstats
path: root/pyanaconda/bootloader.py
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2012-07-19 14:28:22 -0700
committerBrian C. Lane <bcl@redhat.com>2012-07-19 16:23:43 -0700
commitb7db0e75cf3b7540e66d83e5fc17c23ed2426f1e (patch)
treef8eb167b76d70f3d93d8eeb8d3a67b4e13f05695 /pyanaconda/bootloader.py
parent35e0d6351aed15d2dd878aafcb70e71e84831d66 (diff)
downloadanaconda-b7db0e75cf3b7540e66d83e5fc17c23ed2426f1e.tar.gz
anaconda-b7db0e75cf3b7540e66d83e5fc17c23ed2426f1e.tar.xz
anaconda-b7db0e75cf3b7540e66d83e5fc17c23ed2426f1e.zip
fix grub2 install on RAID
grub2 install was appending to the argument list while looping on the component devices this would result in a bogus commandline for the second device.
Diffstat (limited to 'pyanaconda/bootloader.py')
-rw-r--r--pyanaconda/bootloader.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 991c8de80..3ef03b833 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1522,13 +1522,13 @@ class GRUB2(GRUB):
# XXX will installing to multiple drives work as expected with GRUBv2?
for (stage1dev, stage2dev) in self.install_targets:
- args += ["--no-floppy", stage1dev.path]
+ grub_args = args + ["--no-floppy", stage1dev.path]
if stage1dev == stage2dev:
# This is hopefully a temporary hack. GRUB2 currently refuses
# to install to a partition's boot block without --force.
- args.insert(0, '--force')
+ grub_args.insert(0, '--force')
- rc = iutil.execWithRedirect("grub2-install", args,
+ rc = iutil.execWithRedirect("grub2-install", grub_args,
stdout="/dev/tty5", stderr="/dev/tty5",
root=ROOT_PATH,
env_prune=['MALLOC_PERTURB_'])