Reorder mdev initialization to mimic udev boot
[genkernel.git] / defaults / linuxrc
index 3f13f7754efaef93bde29427807193f004d46e6e..7f6883671ca5427a495ef603744c5285810627a5 100755 (executable)
@@ -271,12 +271,24 @@ splash 'init'
 
 cmdline_hwopts
 
+# Mount devfs
+mount_devfs
+
 # Mount sysfs
 mount_sysfs
 
 # Setup hotplugging for firmware loading
 setup_hotplug
 
+# Start mdev
+if [ "${KV_2_6_OR_GREATER}" ]
+then
+       cd /sys
+       good_msg 'Activating mdev'
+       mdev -s  || bad_msg "Failed to receive dynamic updates from mdev"
+       cd /
+fi
+
 # Load modules listed in MY_HWOPTS if /lib/modules exists for the running kernel
 if [ -z "${DO_modules}" ]
 then
@@ -304,9 +316,6 @@ sdelay
 # Setup slow USB bits
 setup_slowusb
 
-# Start device manager
-start_dev_mgr
-
 # if doslowusb is passed, pause other 10 seconds here, after mdev load
 [ "${DO_slowusb}" ] && sleep 10