mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-03 13:12:16 +00:00
initramfs-init: optimize probing of hardware drivers
This commit is contained in:
parent
696082977f
commit
e93ecc6535
@ -33,10 +33,7 @@ eend() {
|
||||
|
||||
scan_drivers() {
|
||||
if [ "$AUTODETECT" != no ] ; then
|
||||
find /sys -name modalias | xargs sort | while read a ; do
|
||||
modprobe $a 2>/dev/null \
|
||||
|| echo $a >> /tmp/hwdrivers.failed
|
||||
done
|
||||
find /sys -name modalias | xargs sort -u | xargs modprobe -a 2> /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user