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]

 



ACK.

On 12/22/2009 09:43 PM, Hans de Goede wrote:
Don't write the dynamically generated dracut kernel cmdline parameters
to anaconda-ks.cfg. Having them there will result in having some of
them twice in the resulting kickstart install, including some which
refer to no longer valid UUID's.
---
  booty/bootloaderInfo.py |    8 ++++++--
  1 files changed, 6 insertions(+), 2 deletions(-)

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()
+
      def chandevget(self):
          return self.cargs

@@ -482,8 +486,8 @@ class bootloaderInfo(object):
          args.append("--location=%s" % (self.defaultDevice,))
          args.append("--driveorder=%s" % (",".join(self.drivelist)))

-        if self.args.get():
-            args.append("--append=\"%s\"" %(self.args.get()))
+        if self.args.getNoDracut():
+            args.append("--append=\"%s\"" %(self.args.getNoDracut()))

          return args


_______________________________________________
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