summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-03-22 19:43:03 +0000
committerChris Lumens <clumens@redhat.com>2006-03-22 19:43:03 +0000
commit205ad15b10bfdccfad61621ba3b4b7fef392c40f (patch)
treeb0089a49f0f2b34d494f2b28ee43579a1406c959 /iutil.py
parentdc78bd8e55b9b59a40b023bbbb43393f38582288 (diff)
downloadanaconda-205ad15b10bfdccfad61621ba3b4b7fef392c40f.tar.gz
anaconda-205ad15b10bfdccfad61621ba3b4b7fef392c40f.tar.xz
anaconda-205ad15b10bfdccfad61621ba3b4b7fef392c40f.zip
Create a dictionary in flags.py for storing /proc/cmdline. Nuke all
references to /proc/cmdline from everywhere else in favor of this dict.
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/iutil.py b/iutil.py
index a18e7a31e..d23a8835d 100644
--- a/iutil.py
+++ b/iutil.py
@@ -470,13 +470,8 @@ def writeRpmPlatform(root="/"):
myarch = rhpl.arch.canonArch
# now allow an override with rpmarch=i586 on the command line (#101971)
- f = open("/proc/cmdline", "r")
- buf = f.read()
- f.close()
- args = buf.split()
- for arg in args:
- if arg.startswith("rpmarch="):
- myarch = arg[8:]
+ if flags.cmdline.has_key("rpmarch"):
+ myarch = flags.cmdline["rpmarch"]
# now make the current install believe it, too
rhpl.arch.canonArch = myarch