aboutsummaryrefslogtreecommitdiff
path: root/conf.d
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-04-25 12:04:34 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-04-25 12:04:34 -0500
commit5d130cc45cd334fd38b0c6874bcc81ac74636217 (patch)
tree40f781a56f236012675f066e8f75a28788c1c4bb /conf.d
parent1c3c2cf6d8cb060d03919297f5fe706f6027a4c6 (diff)
localmount/netmount: allow mount points to be marked critical
In previous releases, we either treated no mount points as critical or all of them. Now both localmount and netmount support a critical_mounts setting. If mount points listed in this setting fail to mount, localmount and netmount will fail.
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/localmount11
-rw-r--r--conf.d/netmount7
2 files changed, 13 insertions, 5 deletions
diff --git a/conf.d/localmount b/conf.d/localmount
index 397e8cd8..e7277194 100644
--- a/conf.d/localmount
+++ b/conf.d/localmount
@@ -2,8 +2,9 @@
# This could be useful for some NFS related work.
#no_umounts="/dir1:/var/dir2"
#
-# Ignore errors when mounting local file systems.
-# This should be left alone unless you know what you are doing. If it is
-# set to yes, not only will we allow mount failures, but we will ignore
-# syntax errors in fstab.
-#ignore_mount_errors="NO"
+# Mark certain mount points as critical.
+# This contains aspace separated list of mount points which should be
+# considered critical. If one of these mount points cannot be mounted,
+# localmount will fail.
+# By default, this is empty.
+#critical_mounts="/home /var"
diff --git a/conf.d/netmount b/conf.d/netmount
index 53717fcd..e759adf1 100644
--- a/conf.d/netmount
+++ b/conf.d/netmount
@@ -38,3 +38,10 @@
# other words, please change it to be more suited to your system.
#
rc_need="net"
+#
+# Mark certain mount points as critical.
+# This contains aspace separated list of mount points which should be
+# considered critical. If one of these mount points cannot be mounted,
+# netmount will fail.
+# By default, this is empty.
+#critical_mounts="/home /var"