From 823c19d1df22d587bce56a363e371d0e9d269c8d Mon Sep 17 00:00:00 2001 From: Seblu Date: Fri, 4 Mar 2011 16:35:11 +0100 Subject: Add UDEV_TIMEOUT option This allow to set a custom timeout for udev events processing. Close FS#20764 Signed-off-by: Seblu --- rc.conf | 3 +++ rc.sysinit | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf