[Bug 14481] New: mdev -s doesn't coldplug devices

bugzilla at busybox.net bugzilla at busybox.net
Thu Dec 30 15:52:18 UTC 2021


https://bugs.busybox.net/show_bug.cgi?id=14481

            Bug ID: 14481
           Summary: mdev -s doesn't coldplug devices
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: axel at axelfontaine.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Linux Kernel 5.15.11 (mainline)
Busybox 1.34.1 x64 static build


When executing mdev -s within the init of an initramfs devices aren't picked up
and modules aren't being loaded.

Instead one must execute 

find /sys/ -name modalias | xargs sort -u | xargs -n 1 modprobe

to ensure all hardware is found and the relevant modules are loaded.

How to reproduce:
1. create a minimal x64 QEMU machine
2. Launch a VM with a minimal Busybox-based initramfs where /init is a reqular
shell script
3. Mount /proc and /sys then execute mdev -s as part of this script

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list