Skip to content

Commit

Permalink
noauto option mountpoints should be ignored
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
new23d committed Mar 5, 2014
1 parent dafdf0b commit b8fee3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/system/check-fstab-mounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b8fee3e

Please sign in to comment.