From 1891c98f57556ad99c35c5556141cade26416ac4 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 20 Jul 2022 14:23:13 +0200 Subject: [PATCH] check-setup: use findmnt with mountpoint instead of target --- server/lib/bkctld-check-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/bkctld-check-setup b/server/lib/bkctld-check-setup index 5f9983a..6e8ac21 100755 --- a/server/lib/bkctld-check-setup +++ b/server/lib/bkctld-check-setup @@ -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"