Re: [PATCH 4/4] Don't write dracut kernel cmdline paramters to anaconda-ks.cfg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 12/23/2009 05:08 PM, Chris Lumens wrote:
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index 3d77254..9ba6a83 100644
--- a/booty/bootloaderInfo.py
+++ b/booty/bootloaderInfo.py
@@ -131,6 +131,10 @@ class KernelArguments:
          self.args = args
          self.appendArgs = ""

+    def getNoDracut(self):
+        args = self.args.strip() + " " + self.appendArgs.strip()
+        return args.strip()
+

You've already stripped both parts, so there shouldn't eb a need to
strip the result.


One of them (or both) can be empty, this strip then removes the added " "
between them, this is the easiest way to handle this.

Regards,

Hans

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux