summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeblu <seblu@seblu.net>2011-03-04 16:35:11 +0100
committerSeblu <seblu@seblu.net>2011-03-16 16:59:55 +0100
commit823c19d1df22d587bce56a363e371d0e9d269c8d (patch)
tree4e3d0cd8a19795d574a46a5b93c6224eb53a3251
parentb77f6400bd105dae85ed4b9bcb57776855e881a5 (diff)
Add UDEV_TIMEOUT option
This allow to set a custom timeout for udev events processing. Close FS#20764 Signed-off-by: Seblu <seblu@seblu.net>
-rw-r--r--rc.conf3
-rwxr-xr-xrc.sysinit2
2 files changed, 4 insertions, 1 deletions
diff --git a/rc.conf b/rc.conf
index e14fb23..cda204f 100644
--- a/rc.conf
+++ b/rc.conf
@@ -36,6 +36,9 @@ USECOLOR="yes"
MOD_AUTOLOAD="yes"
MODULES=()
+# Udev settle timeout (default to 30)
+UDEV_TIMEOUT=30
+
# Scan for SoftRAID (mdadm) Volumes at startup
USEMDADM="no"
diff --git a/rc.sysinit b/rc.sysinit
index 4f97c24..f2ccdae 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -101,7 +101,7 @@ unset mods
# Wait for udev uevents
if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then
stat_busy "Waiting for UDev uevents to be processed"
- /sbin/udevadm settle
+ /sbin/udevadm settle --quiet --timeout=${UDEV_TIMEOUT:-30}
/sbin/udevadm control --property=STARTUP=
stat_done
fi