petitboot assumes that the default action used by udevadm is 'add' which is wrong. Fix it.

Signed-off-by: Phileas Fogg <[email protected]>
---

--- a/discover/udev.c    2012-01-25 19:35:09.000000000 +0100
+++ b/discover/udev.c    2012-01-28 20:27:59.658727191 +0100
@@ -137,7 +137,7 @@

 int udev_trigger(struct udev __attribute__((unused)) *udev)
 {
-    int rc = system("/sbin/udevadm trigger --subsystem-match=block");
+    int rc = system("/sbin/udevadm trigger --action=add 
--subsystem-match=block");

     if (rc)
         pb_log("udev trigger failed: %d (%d)\n", rc, WEXITSTATUS(rc));
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to