Harald Hoyer 9d5d75
From a762dedb60aef8f43a625e1e3c10c97664f1d74a Mon Sep 17 00:00:00 2001
Harald Hoyer 9d5d75
From: Lukas Nykryn <lnykryn@redhat.com>
Harald Hoyer 9d5d75
Date: Thu, 9 Aug 2018 12:14:20 +0200
Harald Hoyer 9d5d75
Subject: [PATCH] dracut-functions: fix the word splitting
Harald Hoyer 9d5d75
Harald Hoyer 9d5d75
---
Harald Hoyer 9d5d75
 dracut-functions.sh | 2 +-
Harald Hoyer 9d5d75
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer 9d5d75
Harald Hoyer 9d5d75
diff --git a/dracut-functions.sh b/dracut-functions.sh
Harald Hoyer 9d5d75
index 7c408f83..1431dd18 100755
Harald Hoyer 9d5d75
--- a/dracut-functions.sh
Harald Hoyer 9d5d75
+++ b/dracut-functions.sh
Harald Hoyer 9d5d75
@@ -683,7 +683,7 @@ get_loaded_kernel_modules ()
Harald Hoyer 9d5d75
     local modules=( )
Harald Hoyer 9d5d75
     while read _module _size _used _used_by; do
Harald Hoyer 9d5d75
         modules+=( "$_module" )
Harald Hoyer 9d5d75
-    done <<< $(lsmod | sed -n '1!p')
Harald Hoyer 9d5d75
+    done <<< "$(lsmod | sed -n '1!p')"
Harald Hoyer 9d5d75
     printf '%s\n' "${modules[@]}" | sort
Harald Hoyer 9d5d75
 }
Harald Hoyer 9d5d75
 
Harald Hoyer 9d5d75