don't crash with multiple = per option in /proc/cmdline
authorChristian Hofstaedtler <ch@grml.org>
Sat, 4 Dec 2010 10:06:49 +0000 (11:06 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Sat, 4 Dec 2010 10:06:49 +0000 (11:06 +0100)
grml-x

diff --git a/grml-x b/grml-x
index 024b41f..5e325e1 100755 (executable)
--- a/grml-x
+++ b/grml-x
@@ -72,7 +72,7 @@ def build_bootparams():
     params = {}
     for p in ' '.join(lines).split(' '):
         if '=' in p:
     params = {}
     for p in ' '.join(lines).split(' '):
         if '=' in p:
-            (k,v) = p.split('=', 2)
+            (k,v) = p.split('=', 1)
             params[k] = v
         else:
             params[p] = True
             params[k] = v
         else:
             params[p] = True