From b8fee3ea48f3b27783511706174e6a1441b84074 Mon Sep 17 00:00:00 2001 From: new23d Date: Wed, 5 Mar 2014 12:55:07 +0000 Subject: [PATCH] noauto option mountpoints should be ignored Mount Points with the noauto option specified are not expected to be mounted, and not mounted by the system at boot time. They are mostly temporarily mounted when needed, listed in /etc/fstab only for convenience, and highly unlikely to be serving critical data on server systems. --- plugins/system/check-fstab-mounts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/system/check-fstab-mounts.rb b/plugins/system/check-fstab-mounts.rb index 1af954cb7..c583af3b9 100755 --- a/plugins/system/check-fstab-mounts.rb +++ b/plugins/system/check-fstab-mounts.rb @@ -35,7 +35,7 @@ def check_mounts @fstab.each do |line| next if line =~ /^\s*#/ fields = line.split(/\s+/) - next if fields[1] == 'none' + next if fields[1] == 'none' || (fields[3].include? 'noauto') next if config[:fstypes] && !config[:fstypes].include?(fields[2]) if @proc_mounts.select {|m| m.split(/\s+/)[1] == fields[1]}.empty? @missing_mounts << fields[1]