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

View file

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