Skip to content
Browse files

noatime: ignore tmpfs and sysfs also

  • Loading branch information...
1 parent 4080da1 commit eb1d3fde1a89f8b49918934f651372d2afc21e6a @mdxp committed Sep 20, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 noatime/recipes/default.rb
View
4 noatime/recipes/default.rb
@@ -32,8 +32,8 @@
bash "enable noatime" do
code <<-EOH
- sed -i -e '/noatime\\|noauto\\|swap\\|proc\\|nfs\\|^#/ !s/defaults\\|remount-ro/&,noatime/g' /etc/fstab
+ sed -i -e '/noatime\\|noauto\\|swap\\|proc\\|sysfs\\|tmpfs\\|devpts\\|nfs\\|^#/ !s/defaults\\|remount-ro/&,noatime/g' /etc/fstab
EOH
- only_if "grep -v 'noatime\\|noauto\\|swap\\|proc\\|devpts\\|nfs\\|^#' /etc/fstab"
+ only_if "grep -v 'noatime\\|noauto\\|swap\\|proc\\|sysfs\\|tmpfs\\|devpts\\|nfs\\|^#' /etc/fstab"
end

0 comments on commit eb1d3fd

Please sign in to comment.
Something went wrong with that request. Please try again.