Added helpful information to stderr

This commit is contained in:
madmaurice 2017-10-28 11:02:48 +02:00 committed by Hive
parent 374f5b9b51
commit 7c1e501066
1 changed files with 2 additions and 0 deletions

View File

@ -65,9 +65,11 @@ fi
uuid=$(cat /proc/sys/kernel/random/uuid)
if ! ./lock.sh haslock; then
echo "###" BEGIN EXPECTED ERRORS >&2
umount -v $SNAPSHOTDIR
cryptsetup close snapshot-decrypt
lvremove -f vg01/crypt-snapshot
echo "###" END EXPECTED ERRORS >&2
mkdir -p $SNAPSHOTDIR