[master/rhel7 1/2] Append cmdline arg values in BootArgs (#1073130)

Brian C. Lane bcl at redhat.com
Tue Mar 18 17:00:57 UTC 2014


This creates a space separated list of the argument values when there is
more than one occurrence of a boot arg (eg. modprobe.blacklist can be
used multiple times). I did it this way instead of making a list
so that BootArgs users that don't have to check for list vs. string.

Related: rhbz#1073130
---
 pyanaconda/flags.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/flags.py b/pyanaconda/flags.py
index 2cf7163..1435311 100644
--- a/pyanaconda/flags.py
+++ b/pyanaconda/flags.py
@@ -166,7 +166,11 @@ class BootArgs(OrderedDict):
                 key = i
                 val = None
 
-            self[key] = val
+            # Duplicate args create a space separated string
+            if key in self:
+                self[key] = self[key] + " " + val
+            else:
+                self[key] = val
 
     def getbool(self, arg, default=False):
         """
-- 
1.8.5.3



More information about the anaconda-patches mailing list