summaryrefslogtreecommitdiffstats
path: root/firewall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-07-12 13:59:19 +0000
committerChris Lumens <clumens@redhat.com>2006-07-12 13:59:19 +0000
commitd0dec240385acda60a0591fbddd1cbcbdf9c20bc (patch)
treed5dfc075f489681cf1577170d06ad47d9b803329 /firewall.py
parent143669aca0a87f5574924ea5aa6a52450a5311c6 (diff)
downloadanaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.tar.gz
anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.tar.xz
anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.zip
Use subprocess instead of our own code. Fix all calls to execWith* so
the command is no longer the first argument, since subprocess doesn't work that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
Diffstat (limited to 'firewall.py')
-rw-r--r--firewall.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/firewall.py b/firewall.py
index 24d0508a6..22eb3fd0b 100644
--- a/firewall.py
+++ b/firewall.py
@@ -59,14 +59,12 @@ class Firewall:
return args
def write (self, instPath):
- args = [ "/usr/sbin/lokkit", "--quiet", "--nostart", "-f" ]
-
- args = args + self.getArgList()
+ args = [ "--quiet", "--nostart", "-f" ] + self.getArgList()
try:
if not flags.test:
- iutil.execWithRedirect(args[0], args, root = instPath,
- stdout = None, stderr = None)
+ iutil.execWithRedirect("/usr/sbin/lokkit", args,
+ root=instPath, stdout=None, stderr=None)
else:
log.error("would have run %s", args)
except RuntimeError, msg: