kdump-anaconda-addon/dont-put-options-after-the-end-of-the-addon-section.patch
2021-08-07 10:31:04 +08:00

31 lines
1.1 KiB
Diff

From 0c68135bd14788bc6b3f7f901eb2d2cb8ba76f79 Mon Sep 17 00:00:00 2001
From: Martin Kolman <martin.kolman@gmail.com>
Date: Mon, 7 Sep 2015 14:46:42 +0200
Subject: [PATCH] Don't put options after the %end of the %addon section
Otherwise the installation describing kickstart will not be valid.
This can resulting in various issues such, as Initial Setup refusing
to run due to invalid kickstart file.
---
com_redhat_kdump/ks/kdump.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/com_redhat_kdump/ks/kdump.py b/com_redhat_kdump/ks/kdump.py
index 6929c9b..34f46a2 100644
--- a/com_redhat_kdump/ks/kdump.py
+++ b/com_redhat_kdump/ks/kdump.py
@@ -54,11 +54,11 @@ def __str__(self):
if self.reserveMB:
addon_str += " --reserve-mb='%s'" % self.reserveMB
- addon_str += "\n%s\n%%end\n" % self.content.strip()
-
if self.enablefadump:
addon_str += " --enablefadump"
+ addon_str += "\n%s\n%%end\n" % self.content.strip()
+
return addon_str
def setup(self, storage, ksdata, instClass):