mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-09 07:57:32 +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() {
|
scan_drivers() {
|
||||||
if [ "$AUTODETECT" != no ] ; then
|
if [ "$AUTODETECT" != no ] ; then
|
||||||
find /sys -name modalias | xargs sort | while read a ; do
|
find /sys -name modalias | xargs sort -u | xargs modprobe -a 2> /dev/null
|
||||||
modprobe $a 2>/dev/null \
|
|
||||||
|| echo $a >> /tmp/hwdrivers.failed
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user