From 205ad15b10bfdccfad61621ba3b4b7fef392c40f Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 22 Mar 2006 19:43:03 +0000 Subject: Create a dictionary in flags.py for storing /proc/cmdline. Nuke all references to /proc/cmdline from everywhere else in favor of this dict. --- installclass.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'installclass.py') 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 -- cgit