summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2009-06-17 15:15:46 -0700
committerBob Gilligan <gilligan@vyatta.com>2009-06-17 16:09:35 -0700
commita027ca85d8850c397d00039de5fce4e09e984400 (patch)
tree8ba9d71969f13488f1baadb7f8e921001d40bc29
parent8136ae9199b215a915df299264b8fc5ac9f9793c (diff)
downloadvyatta-cfg-quagga-a027ca85d8850c397d00039de5fce4e09e984400.tar.gz
vyatta-cfg-quagga-a027ca85d8850c397d00039de5fce4e09e984400.zip
Bugfix 4490: Wait for stability after marking partition bootable.
-rwxr-xr-xscripts/install-system4
1 files changed, 4 insertions, 0 deletions
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