Fix the sysvm startup lock cleanup
[invirt/packages/invirt-xen-config.git] / debian / invirt-xen-config.init
index d0d8582..3b76a54 100755 (executable)
@@ -56,8 +56,9 @@ start_sysvm() {
         lvchange -a y "$DISK" >/dev/null 2>&1
     
         # Cleanup the lock, regardless of whether we started the LV
-        lvchange -a n "/dev/xenvg/lock_${LV}"
-        lvremove -f "/dev/xenvg/lock_${LV}"
+        lvchange -a n "/dev/xenvg/lock_${LV}" >/dev/null 2>&1
+        lvchange -a ey "/dev/xenvg/lock_${LV}" >/dev/null 2>&1
+        lvremove -f "/dev/xenvg/lock_${LV}" >/dev/null 2>&1
     fi
     
     return $RET