From a027ca85d8850c397d00039de5fce4e09e984400 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Wed, 17 Jun 2009 15:15:46 -0700 Subject: Bugfix 4490: Wait for stability after marking partition bootable. --- scripts/install-system | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/install-system') diff --git a/scripts/install-system b/scripts/install-system index a3e27075..4fa48054 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -1111,6 +1111,8 @@ setup_method_auto() { # mark data partition as bootable echo "Marking /dev/$INSTALL_DRIVE partition 1 as bootable" >> $INSTALL_LOG parted /dev/$INSTALL_DRIVE set 1 boot on >> $INSTALL_LOG 2>&1 + # Must give partition device time to settle + sleep 5 } # walk the user through a union setup @@ -1327,6 +1329,8 @@ elif [ "$INSTALL_METHOD" == "vyatta" ]; then # mark data partition as bootable echo "Marking /dev/$INSTALL_DRIVE partition 1 as bootable" >> $INSTALL_LOG parted /dev/$INSTALL_DRIVE set 1 boot on >> $INSTALL_LOG 2>&1 + # Must give partition device time to settle + sleep 5 fi if [ ! -d /live/image -o -w /live/image ]; then -- cgit v1.2.3