summaryrefslogtreecommitdiffstats
path: root/tools/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-03-09 18:53:52 +0000
committerOlivier Blin <oblin@mandriva.org>2006-03-09 18:53:52 +0000
commite0ab0a89b1b52a168d0ffeacc109dc4705852454 (patch)
tree6fb53ec64226edae8399f39ab813886e5ebab12e /tools/draklive
parentf8d04cc23cc41ad0ce7ca3421d714cf06978d8f3 (diff)
downloaddrakx-e0ab0a89b1b52a168d0ffeacc109dc4705852454.tar
drakx-e0ab0a89b1b52a168d0ffeacc109dc4705852454.tar.gz
drakx-e0ab0a89b1b52a168d0ffeacc109dc4705852454.tar.bz2
drakx-e0ab0a89b1b52a168d0ffeacc109dc4705852454.tar.xz
drakx-e0ab0a89b1b52a168d0ffeacc109dc4705852454.zip
wait some seconds for the usb-stor-scan process to be run
Diffstat (limited to 'tools/draklive')
-rwxr-xr-xtools/draklive5
1 files changed, 4 insertions, 1 deletions
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') .