]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: fix the word splitting
authorLukas Nykryn <lnykryn@redhat.com>
Thu, 9 Aug 2018 10:14:20 +0000 (12:14 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 9 Aug 2018 11:13:52 +0000 (13:13 +0200)
dracut-functions.sh

index 7c408f836382ef33e1e0735cde82e8b6c6f81f5a..1431dd1861da9a27815f5c426668f02b3c095aca 100755 (executable)
@@ -683,7 +683,7 @@ get_loaded_kernel_modules ()
     local modules=( )
     while read _module _size _used _used_by; do
         modules+=( "$_module" )
-    done <<< $(lsmod | sed -n '1!p')
+    done <<< "$(lsmod | sed -n '1!p')"
     printf '%s\n' "${modules[@]}" | sort
 }