summaryrefslogtreecommitdiffstats
path: root/booty/x86.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2009-04-17 16:39:24 -0700
committerJesse Keating <jkeating@redhat.com>2009-04-17 16:39:24 -0700
commit5e184c33a83eedc7dd71c5fc6a8e5586d6639d95 (patch)
tree93c4fe78721988bc34c1394d1abea529e8c179b3 /booty/x86.py
parentfc982ce3ae77d0ad8708a94a3d4ba46a4825773c (diff)
downloadanaconda-5e184c33a83eedc7dd71c5fc6a8e5586d6639d95.tar.gz
anaconda-5e184c33a83eedc7dd71c5fc6a8e5586d6639d95.tar.xz
anaconda-5e184c33a83eedc7dd71c5fc6a8e5586d6639d95.zip
Clean up argument list after changing from rhpl to iutil for execWithRedirect
iutil uses subprocess.Popen and passes in the argv as a list, which causes Popen to use the first entry of the list as the executable, and the rest of the entires as arguments to that executable. This is different from how rhpl did things in which the first argument of the arglist had to be the executable itself. Also iutil expects argv to be a real list not a tuple.
Diffstat (limited to 'booty/x86.py')
-rw-r--r--booty/x86.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/booty/x86.py b/booty/x86.py
index d710fbb8e..99f2e5d93 100644
--- a/booty/x86.py
+++ b/booty/x86.py
@@ -71,7 +71,7 @@ class x86BootloaderInfo(efiBootloaderInfo):
# copy the stage files over into /boot
iutil.execWithRedirect("/sbin/grub-install",
- ["/sbin/grub-install", "--just-copy"],
+ ["--just-copy"],
stdout = "/dev/tty5", stderr = "/dev/tty5",
root = instRoot)
@@ -89,7 +89,7 @@ class x86BootloaderInfo(efiBootloaderInfo):
syncDataToDisk(bootDev, "/", instRoot)
iutil.execWithRedirect('/sbin/grub' ,
- [ "grub", "--batch", "--no-floppy",
+ [ "--batch", "--no-floppy",
"--device-map=/boot/grub/device.map" ],
stdin = p[0],
stdout = "/dev/tty5", stderr = "/dev/tty5",