summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-03-03 18:10:33 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-03-03 18:10:33 -0800
commit24ff6a1929e0fad20bc87bafddb840deb8f87f6a (patch)
tree741402c1f6a54d4c9f1d73aab4d8210abc31c68a /templates
parent2547793b80716d829d8d5548bc3fa14992533254 (diff)
downloadvyatta-op-24ff6a1929e0fad20bc87bafddb840deb8f87f6a.tar.gz
vyatta-op-24ff6a1929e0fad20bc87bafddb840deb8f87f6a.zip
Bugfix 5404: Handle RAID resynchronization on image-installed systems.
Diffstat (limited to 'templates')
-rw-r--r--templates/add/raid/node.tag/member/node.tag/node.def9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/add/raid/node.tag/member/node.tag/node.def b/templates/add/raid/node.tag/member/node.tag/node.def
index b30c313..b526e1e 100644
--- a/templates/add/raid/node.tag/member/node.tag/node.def
+++ b/templates/add/raid/node.tag/member/node.tag/node.def
@@ -37,8 +37,15 @@ run:
echo "Unable to add member to RAID set"
fi
+ mounted_on_root=0
mounted_on=`mount | grep "^/dev/${raid_set}" | awk '{ print $3 }'`
- if [ "$mounted_on" = "/" ]; then
+ for dir in $mounted_on ; do
+ if [ "$dir" = "/" -o "$dir" = "/live/image" ]; then
+ mounted_on_root=1
+ fi
+ done
+
+ if [ $mounted_on_root -eq 1 ]; then
echo
echo "Warning: RAID set ${raid_set} holds the root filesystem."
echo "To make the new disk bootable, the boot program will be"