include all fs modules in initrd since it is needed

This commit is contained in:
Tomas M
2017-05-23 00:24:55 -05:00
parent cf6024417a
commit 0c233c5ca8
2 changed files with 15 additions and 11 deletions
+2 -4
View File
@@ -157,9 +157,7 @@ modprobe_everything()
echo_green_star >&2
echo "Probing for hardware" >&2
find /lib/modules/ | while read MODULE; do
modprobe $MODULE 2>/dev/null
done
find /lib/modules/ | fgrep .ko | xargs -n 1 modprobe 2>/dev/null
}
@@ -316,7 +314,7 @@ init_network_dev()
# If we are here, none of the above specified modules worked.
# As a last chance, try to modprobe everything.
find /lib/modules/ | xargs -n 1 modprobe
modprobe_everything
cat /proc/net/dev | grep : | grep -v lo: | cut -d : -f 1 | tr -d " " | head -n 1
}