diff options
-rw-r--r-- | templates/add/raid/node.tag/member/node.tag/node.def | 9 |
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" |