Compare commits

...

2 Commits

2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [6.8.0] - 2020-10-23
### Fixed
- Fix check_noatime : do not take into account commented entry in fstab
## [6.7.7] - 2020-10-22
### Added

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
}