summaryrefslogtreecommitdiffstats
path: root/instdata.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 /instdata.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 'instdata.py')
-rw-r--r--instdata.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/instdata.py b/instdata.py
index 72a1f01ba..33aad350a 100644
--- a/instdata.py
+++ b/instdata.py
@@ -234,14 +234,9 @@ class InstallData:
self.floppyDevice = floppyDevice
self.fsset = fsset.FileSystemSet()
self.excludeDocs = 0
- try:
- f = open("/proc/cmdline")
- line = f.readline()
- if line.find(" excludedocs") != -1:
- self.excludeDocs = 1
- close(f)
- except:
- pass
+
+ if flags.cmdline.has_key("excludedocs"):
+ self.excludeDocs = 1
self.methodstr = methodstr
self.reset()