check-setup: use findmnt with mountpoint instead of target

This commit is contained in:
Jérémy Lecour 2022-07-20 14:23:13 +02:00 committed by Jérémy Lecour
parent aef2637c1e
commit 1891c98f57
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ output=""
# Verify backup partition is mounted and writable
findmnt -O rw --target "${BACKUP_PARTITION}" > /dev/null
findmnt -O rw --mountpoint "${BACKUP_PARTITION}" > /dev/null
if [ "$?" -ne 0 ]; then
nb_crit=$((nb_crit + 1))
output="${output}CRITICAL - Backup disk \`/backup' is not mounted (or read-only) !\n"