[rhel7/master] Preserve kickstart url behavior for mirrorlist (#1109933)
Brian C. Lane
bcl at redhat.com
Wed Jan 7 00:34:21 UTC 2015
url could be --mirrorlist instead of --url. Don't assume url is set, and
for mirrorlist pass inst.repo=None to preserve current behavior (there
is no cmdline way to represent a mirrorlist).
Related: rhbz#1109933
---
dracut/parse-kickstart | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index 304512e..dd981f5 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -81,7 +81,11 @@ class NFS(commands.nfs.FC6_NFS):
class URL(commands.url.F18_Url):
def dracut_args(self, args, lineno, obj):
# Spaces in the url need to be %20
- method = self.url.replace(" ", "%20")
+ if self.url:
+ method = self.url.replace(" ", "%20")
+ else:
+ method = None
+
args = ["inst.repo=%s" % method]
if self.noverifyssl:
--
1.9.3
More information about the anaconda-patches
mailing list