mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
pkg: Add support for cold-plugged devices to init
mdev only supports hot-plug, ie devices which are added after the kernel booted. For cold-plugged devices, ie devices present when the kernel boots, we need to modprobe the drivers differently. The additions to rc.init does just that. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
c1950419ef
commit
4e4efcd985
@ -75,6 +75,9 @@ done
|
||||
|
||||
mdev -s
|
||||
|
||||
# Load modules for cold-plugged devices (ie devices present on boot)
|
||||
grep -h MODALIAS /sys/bus/*/devices/*/uevent | cut -d= -f2 | xargs modprobe -abq 2> /dev/null
|
||||
|
||||
# set hostname
|
||||
if [ -s /etc/hostname ]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user