From e21628fea78dfbb7601cfff2863314647f24a61d Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Fri, 23 Oct 2020 17:32:15 +0200 Subject: [PATCH] Fix check_noatime : do not take into account commented entry in fstab --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 73a7ef7..e77b112 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -108,7 +108,7 @@ check_softdep(){ } check_noatime(){ - if [ $(mount | grep -c noatime) -ne $(grep -c ffs /etc/fstab) ]; then + if [ $(mount | grep -c noatime) -ne $(grep ffs /etc/fstab | grep -vc ^\#) ]; then failed "IS_NOATIME" "All partitions should be mounted with the noatime option" fi }