summaryrefslogtreecommitdiffstats
path: root/installclass.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 /installclass.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 'installclass.py')
-rw-r--r--installclass.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/installclass.py b/installclass.py
index 2ebc76d3c..1399470d8 100644
--- a/installclass.py
+++ b/installclass.py
@@ -174,13 +174,11 @@ class BaseInstallClass:
# 'noupgrade' can be used on the command line to force not looking
# for partitions to upgrade. useful in some cases...
- cmdline = open("/proc/cmdline", "r").read()
- cmdline = cmdline.split()
- if "noupgrade" in cmdline:
+ if flags.cmdline.has_key("noupgrade"):
dispatch.skipStep("findrootparts", skip = 1)
# upgrade will also always force looking for an upgrade.
- if "upgrade" in cmdline:
+ if flags.cmdline.has_key("upgrade"):
dispatch.skipStep("findrootparts", skip = 0)
# Ask for iscsi configuration only when specifically requested