appliance: udev-174 moves udevd to /lib/udev/udevd (instead of /sbin/udevd)
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 20 Oct 2011 22:04:41 +0000 (23:04 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 31 Oct 2011 09:54:03 +0000 (09:54 +0000)
(cherry picked from commit fef0ff3d869d2ebdb48eea0c538270fc98f5952d)

appliance/init

index 9490d48..bc94393 100755 (executable)
@@ -29,6 +29,11 @@ elif [ -x /sbin/udevd ]; then
   /sbin/udevd --daemon
   /sbin/udevadm trigger
   /sbin/udevadm settle
   /sbin/udevd --daemon
   /sbin/udevadm trigger
   /sbin/udevadm settle
+elif [ -x /lib/udev/udevd ]; then
+  echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
+  /lib/udev/udevd --daemon
+  /sbin/udevadm trigger
+  /sbin/udevadm settle
 else
   echo No udev, creating /dev manually
   mount -t tmpfs none /dev
 else
   echo No udev, creating /dev manually
   mount -t tmpfs none /dev