From cb40435a8285be6d023192c0bae8c184f1d37ed0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 5 Dec 2018 22:53:17 +0100 Subject: bin/realtime-suggestions: Ignoring /boot mount points (it's very unlikely to use that for anything but boot stuff). --- bin/realtime-suggestions | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/realtime-suggestions b/bin/realtime-suggestions index 4ff8722..2852476 100755 --- a/bin/realtime-suggestions +++ b/bin/realtime-suggestions @@ -28,11 +28,13 @@ check_filesystems() { where="${mount_point_data[2]}" type="${mount_point_data[4]}" options="${mount_point_data[5]}" - if [[ "$options" != *relatime* ]] && [[ "$options" != *noatime* ]]; then - echo "$warning $what mounted on $where (type $type) should use the relatime mount option for performance." - fi - if [[ "$type" == *fuse* ]] || [[ "$type" == *reiserfs* ]] || [[ "$type" == *vfat* ]]; then - echo "$info $what mounted on $where (type $type) is not a good filesystem for large files or realtime use." + if [[ "$where" != /boot* ]]; then + if [[ "$options" != *relatime* ]] && [[ "$options" != *noatime* ]]; then + echo "$warning $what mounted on $where (type $type) should use the relatime mount option for performance." + fi + if [[ "$type" == *fuse* ]] || [[ "$type" == *reiserfs* ]] || [[ "$type" == *vfat* ]]; then + echo "$info $what mounted on $where (type $type) is not a good filesystem for large files or realtime use." + fi fi done } -- cgit v1.2.3-54-g00ecf