]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Add rd.noverifyssl argument (#852229)
authorBrian C. Lane <bcl@redhat.com>
Mon, 8 Oct 2012 22:01:29 +0000 (15:01 -0700)
committerHarald Hoyer <harald@redhat.com>
Tue, 9 Oct 2012 15:37:29 +0000 (17:37 +0200)
This adds --insecure to the curl args so that self-signed certificates
will be accepted.

dracut.cmdline.7.asc
modules.d/45url-lib/url-lib.sh

index 350aecf6a625581cf4af8159c4081fc9a5359248..27d3a55131124cfbf806b4b43c8e18a1314260ee 100644 (file)
@@ -114,6 +114,9 @@ Misc
     started. If you have hardware, which takes a very long time to announce its
     drives, you might want to extend this value.
 
+**rd.noverifyssl**::
+    accept self-signed certificates for ssl downloads.
+
 [[dracutkerneldebug]]
 Debug
 ~~~~~
index a8069efad213b64d9feb1de64bb568a93821337d..034a7cd129c6a7f98d27f2d614d9793201803fb7 100755 (executable)
@@ -54,7 +54,8 @@ add_url_handler() {
 
 export CURL_HOME="/run/initramfs/url-lib"
 mkdir -p $CURL_HOME
-curl_args="--location --retry 3 --fail --show-error --insecure"
+curl_args="--location --retry 3 --fail --show-error"
+getargbool 0 rd.noverifyssl && curl_args+=" --insecure"
 
 curl_fetch_url() {
     local url="$1" outloc="$2"