automatically disable faiserver nfs in some scripts
authorIan Kelling <ian@iankelling.org>
Sat, 8 Apr 2017 23:50:48 +0000 (16:50 -0700)
committerIan Kelling <ian@iankelling.org>
Sat, 8 Apr 2017 23:50:48 +0000 (16:50 -0700)
dsfull
fai-revm

diff --git a/dsfull b/dsfull
index 54ee3661a8a5d3c5569c6d89ed1cc55d1f5c7e7e..40c933ca9c255f760aa7989f8193d8bbda85d8f3 100755 (executable)
--- a/dsfull
+++ b/dsfull
@@ -92,6 +92,7 @@ for ((i=0; i<240; i++)); do
     fi
     sleep 5
 done
+e faiserver-disable
 if $error; then
     echo "$0: error: timeout"
     exit 1
index 8d782c0f857f6fbc48bf0231d2046de632e9e660..5ea9d98ca77ca34b1fdb081f3edcf389881083c7 100755 (executable)
--- a/fai-revm
+++ b/fai-revm
@@ -77,7 +77,10 @@ is_arch_revm() {
     [[ ${0##*/} == arch-revm ]]
 }
 
-cleanup() { ./pxe-server; }
+cleanup() {
+    ./pxe-server
+    ./faiserver-disable
+}
 if is_arch_revm; then
     ./pxe-server demohost arch
     sleep 2