From e0ab0a89b1b52a168d0ffeacc109dc4705852454 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 9 Mar 2006 18:53:52 +0000 Subject: wait some seconds for the usb-stor-scan process to be run --- tools/draklive | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/draklive b/tools/draklive index afff52815..1c7eaf944 100755 --- a/tools/draklive +++ b/tools/draklive @@ -368,7 +368,10 @@ sub create_initrd_linuxrc { "mount -t proc none /proc", #- required for cdrom labels "mount -t sysfs none /sys", - q(busybox sh -c 'while busybox ps | busybox grep -q \\\[usb-stor-scan\\\]; do busybox sleep 1; done'), + if_(member('usb-storage', @modules), + #- wait some seconds for the usb-stor-scan process to be run + "sleep 2", + q(busybox sh -c 'while busybox ps | busybox grep -q \\\[usb-stor-scan\\\]; do busybox sleep 1; done')), if_($live->{debug}, "/bin/sh"), if_($pre, deref_array($pre)), ($fs eq 'nfs' ? '/bin/mount -n -o ro,nolock' : 'mount') . -- cgit v1.2.1