[master/rhel7 1/2] Add noverifyssl and proxy support to dracut ks handling (#1116858)
Brian C. Lane
bcl at redhat.com
Thu Aug 14 22:16:52 UTC 2014
When the kickstart is used to point to the location of the tree using
https it needs to also set rd.noverifyssl if the --noverifyssl flag is
set on the url install method on the kickstart.
Also add support for --proxy being passed to proxy cmdline option,
passed on to curl by dracut.
Resolves: rhbz#1116858
---
dracut/parse-kickstart | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index a8ece63..10473bc 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -74,8 +74,13 @@ class NFS(commands.nfs.FC6_NFS):
class URL(commands.url.F18_Url):
def dracut_args(self, args, lineno, obj):
- # FIXME: self.proxy, self.noverifyssl
- return "inst.repo=%s" % self.url
+ args = ["inst.repo=%s" % self.url]
+ if self.noverifyssl:
+ args.append("rd.noverifyssl")
+ if self.proxy:
+ args.append("proxy=%s" % self.proxy)
+
+ return "\n".join(args)
class Updates(commands.updates.F7_Updates):
def dracut_args(self, args, lineno, obj):
--
1.9.3
More information about the anaconda-patches
mailing list