summaryrefslogtreecommitdiffstats
path: root/packages.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 /packages.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 'packages.py')
-rw-r--r--packages.py36
1 files changed, 3 insertions, 33 deletions
diff --git a/packages.py b/packages.py
index d8469c600..c76247c92 100644
--- a/packages.py
+++ b/packages.py
@@ -166,14 +166,14 @@ def setupTimezone(anaconda):
if rhpl.getArch() == "s390":
return
- args = [ "/usr/sbin/hwclock", "--hctosys" ]
+ args = [ "--hctosys" ]
if anaconda.id.timezone.utc:
args.append("-u")
elif anaconda.id.timezone.arc:
args.append("-a")
try:
- iutil.execWithRedirect(args[0], args, stdin = None,
+ iutil.execWithRedirect("/usr/sbin/hwclock", args, stdin = None,
stdout = "/dev/tty5", stderr = "/dev/tty5")
except RuntimeError:
log.error("Failed to set clock")
@@ -232,41 +232,11 @@ def setFileCons(anaconda):
return
-# XXX: large hack lies here
-def migrateMouseConfig(instPath, instLog):
- if not os.access (instPath + "/usr/sbin/fix-mouse-psaux", os.X_OK):
- return
-
- argv = [ "/usr/sbin/fix-mouse-psaux" ]
-
- logfile = os.open (instLog, os.O_APPEND)
- iutil.execWithRedirect(argv[0], argv, root = instPath,
- stdout = logfile, stderr = logfile)
- os.close(logfile)
-
-
-def migrateXinetd(instPath, instLog):
- if not os.access (instPath + "/usr/sbin/inetdconvert", os.X_OK):
- return
-
- if not os.access (instPath + "/etc/inetd.conf.rpmsave", os.R_OK):
- return
-
- argv = [ "/usr/sbin/inetdconvert", "--convertremaining",
- "--inetdfile", "/etc/inetd.conf.rpmsave" ]
-
- logfile = os.open (instLog, os.O_APPEND)
- iutil.execWithRedirect(argv[0], argv, root = instPath,
- stdout = logfile, stderr = logfile)
- os.close(logfile)
-
-
#Recreate initrd for use when driver disks add modules
def recreateInitrd (kernelTag, instRoot):
log.info("recreating initrd for %s" % (kernelTag,))
iutil.execWithRedirect("/sbin/new-kernel-pkg",
- [ "/sbin/new-kernel-pkg", "--mkinitrd",
- "--depmod", "--install", kernelTag ],
+ [ "--mkinitrd", "--depmod", "--install", kernelTag ],
stdout = None, stderr = None,
searchPath = 1, root = instRoot)