[projects/geninitrd] Use uevent feature of new busybox instead of pure and racy mdev via hotplug

arekm arekm at pld-linux.org
Sat May 7 12:34:37 CEST 2016


commit 985c7aef65f1fd4a704ded7218fb2df010153080
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat May 7 12:34:33 2016 +0200

    Use uevent feature of new busybox instead of pure and racy mdev via hotplug

 mod-udev.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/mod-udev.sh b/mod-udev.sh
index 30114cd..422ef3e 100644
--- a/mod-udev.sh
+++ b/mod-udev.sh
@@ -115,8 +115,9 @@ initrd_gen_stop_udevd() {
 initrd_gen_mdev() {
 	debug "Setting up mdev..."
 
-	busybox_applet mdev
+	busybox_applet mdev uevent
 	ln -s busybox $DESTDIR/bin/mdev
+	ln -s busybox $DESTDIR/bin/uevent
 
 	cat > $DESTDIR/etc/mdev.conf	<<-'EOF'
 # Provide user, group, and mode information for devices.  If a regex matches
@@ -157,13 +158,13 @@ hd[a-z]*	0:6 660
 	add_linuxrc	<<-'EOF'
 		# \n needed in mdev.seq
 		echo > /dev/mdev.seq
-		echo /bin/mdev > /proc/sys/kernel/hotplug
+		uevent mdev &
 		mdev -s
 	EOF
 }
 
 initrd_gen_stop_mdev() {
 	add_linuxrc     <<-'EOF'
-		killall mdev > /dev/null 2>&1
+		killall uevent > /dev/null 2>&1
 	EOF
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/985c7aef65f1fd4a704ded7218fb2df010153080



More information about the pld-cvs-commit mailing list