summaryrefslogtreecommitdiff
path: root/scripts/local
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2015-12-06 23:39:47 +0000
committerBen Hutchings <ben@decadent.org.uk>2015-12-09 15:45:09 +0000
commit95beada655754fffaca24c92067df1070943a9f4 (patch)
treeec77caccfe72f741585e03e1c6714a9094b8d9b2 /scripts/local
parentfa82bf1b5801b220102521addc876b80d8696afc (diff)
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 <ben@decadent.org.uk>
Diffstat (limited to 'scripts/local')
-rw-r--r--scripts/local4
1 files changed, 3 insertions, 1 deletions
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