diff --git a/dracut-functions.sh b/dracut-functions.sh index 7c408f83..1431dd18 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -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 }