]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
url-lib: drop NSS if it's not in curl --version
authorAlexander Sosedkin <asosedkin@redhat.com>
Thu, 26 Mar 2020 14:11:15 +0000 (15:11 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 2 Apr 2020 20:09:39 +0000 (22:09 +0200)
modules.d/45url-lib/module-setup.sh

index a99e0c5635f6a72d2c0d3aa1c3b20ec494765075..258a9e1613273ccf8d80708c6ad288e12a345d0c 100755 (executable)
@@ -19,11 +19,13 @@ install() {
     inst_simple "$moddir/url-lib.sh" "/lib/url-lib.sh"
     inst_multiple -o ctorrent
     inst_multiple curl
-    # also install libs for curl https
-    inst_libdir_file "libnsspem.so*"
-    inst_libdir_file "libnsssysinit.so*"
-    inst_libdir_file "libsoftokn3.so*"
-    inst_libdir_file "libsqlite3.so*"
+    if curl --version | grep -qi '\bNSS\b'; then
+        # also install libs for curl https
+        inst_libdir_file "libnsspem.so*"
+        inst_libdir_file "libnsssysinit.so*"
+        inst_libdir_file "libsoftokn3.so*"
+        inst_libdir_file "libsqlite3.so*"
+    fi
 
     for _dir in $libdirs; do
        [[ -d $dracutsysrootdir$_dir ]] || continue