From 95beada655754fffaca24c92067df1070943a9f4 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 6 Dec 2015 23:39:47 +0000 Subject: Only run fsck if enabled in /etc/fstab (pass != 0) hooks/functions: Don't install fsck for a mountpoint with pass = 0, and do nothing if all mountpoints have pass=0 scripts/functions: Change _checkfs_once to fail quietly if fsck is missing scripts/local: Only call _checkfs_once if pass != 0 Closes: #797361 Signed-off-by: Ben Hutchings --- scripts/local | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/local') diff --git a/scripts/local b/scripts/local index f6424f0..25584fc 100644 --- a/scripts/local +++ b/scripts/local @@ -175,7 +175,9 @@ local_mount_fs() # FIXME This has no error checking modprobe "${MNT_TYPE}" - checkfs "$MNT_FSNAME" "$MNT_DIR" + if [ "$MNT_PASS" != 0 ]; then + checkfs "$MNT_FSNAME" "$MNT_DIR" + fi # FIXME This has no error checking # Mount filesystem -- cgit v1.2.3