Fix check_noatime : do not take into account commented entry in fstab

This commit is contained in:
Jérémy Dubois 2020-10-23 17:32:15 +02:00
parent 04139f3d60
commit e21628fea7
1 changed files with 1 additions and 1 deletions

View File

@ -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
}