From: Harald Hoyer Date: Mon, 16 Nov 2015 08:24:50 +0000 (+0100) Subject: dracut.sh: add back host_modules part X-Git-Tag: 044~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63a44c8dc31f3168c85d9851619af2876cda4d00;p=thirdparty%2Fdracut.git dracut.sh: add back host_modules part host_modules was removed accidently while remove host_modaliases --- diff --git a/dracut.sh b/dracut.sh index a21295d85..be4c1073f 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1100,6 +1100,8 @@ if (( ${#add_device_l[@]} )); then push_host_devs "${add_device_l[@]}" fi +declare -A host_modules + if [[ $hostonly ]]; then # in hostonly mode, determine all devices, which have to be accessed # and examine them for filesystem types @@ -1187,6 +1189,11 @@ if [[ $hostonly ]]; then fi done < /etc/fstab fi + + # check /proc/modules + while read m rest || [ -n "$m" ]; do + host_modules["$m"]=1 + done