summaryrefslogtreecommitdiffstats
path: root/booty
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-12-22 21:39:07 +0100
committerHans de Goede <hdegoede@redhat.com>2009-12-24 07:44:31 +0100
commit0fdc0d7fa1631cc25d14d00ff21f04bc70cc173b (patch)
tree8e042d2155d27f9aae7d52d4375689c45f8d2770 /booty
parent0a461ac698d4b2e9e107991dd610529f36eb132e (diff)
downloadanaconda-0fdc0d7fa1631cc25d14d00ff21f04bc70cc173b.tar.gz
anaconda-0fdc0d7fa1631cc25d14d00ff21f04bc70cc173b.tar.xz
anaconda-0fdc0d7fa1631cc25d14d00ff21f04bc70cc173b.zip
Don't write dracut kernel cmdline paramters to anaconda-ks.cfg
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.
Diffstat (limited to 'booty')
-rw-r--r--booty/bootloaderInfo.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index 3d77254d1..9ba6a830d 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