From b1913a9b898c9e876707b67011dd10f2801921f4 Mon Sep 17 00:00:00 2001 From: Sergej Pupykin Date: Thu, 16 Dec 2010 20:53:42 +0300 Subject: [PATCH] add udevadm settle timeout --- rc.conf | 3 +++ rc.sysinit | 3 ++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/rc.conf b/rc.conf index de182c3..f7da716 100644 --- a/rc.conf +++ b/rc.conf @@ -37,6 +37,9 @@ MOD_AUTOLOAD="yes" #MOD_BLACKLIST=() #deprecated MODULES=() +# udevaddm settle timeout +# UDEVADM_SETTLE_TIMEOUT=30 + # Scan for LVM volume groups at startup, required if you use LVM USELVM="no" diff --git a/rc.sysinit b/rc.sysinit index 44238fa..5f92baa 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -104,7 +104,8 @@ 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 + [ -z "$UDEVADM_SETTLE_TIMEOUT" ] && UDEVADM_SETTLE_TIMEOUT=30 + /sbin/udevadm settle --timeout=$UDEVADM_SETTLE_TIMEOUT /sbin/udevadm control --property=STARTUP= stat_done fi -- 1.7.3.3