Permalink
Browse files

Synconized usb script fixs between yum and apt platform

  • Loading branch information...
1 parent 4c16a4a commit 13b2c59f9fdb66ef460f8da5a47f4cf9a2c0206f @juanje committed Nov 27, 2008
Showing with 4 additions and 1 deletion.
  1. +4 −1 platforms/common-apt/initramfs/usb
View
5 platforms/common-apt/initramfs/usb
@@ -44,6 +44,9 @@ mountroot ()
/bin/sleep 5
echo "Sleeping finished"
done
+ if [ "$found" = "yes" ]; then
+ break;
+ fi
echo "Trying non-removable drives"
/bin/sleep 5
for device in 'sda' 'sdb' 'sdc' 'sdd'; do
@@ -67,7 +70,7 @@ mountroot ()
mount -o rw /dev/${device} /container 2> /dev/null
while [ ! -e "/container/rootfs.img" ]; do
- /bin/sleep 0.5
+ /bin/sleep 1
mount -o rw /dev/${device} /container 2> /dev/null
done

0 comments on commit 13b2c59

Please sign in to comment.