commit:     7341cd882fba522c1f1d183603334839bd4df7fc
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Mon Aug 10 23:45:36 2015 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 23:21:39 2015 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=7341cd88

allow localmount and netmount to fail

 NEWS.md              | 11 +++++++++++
 init.d/localmount.in |  3 ---
 init.d/netmount.in   |  1 -
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/NEWS.md b/NEWS.md
index 20e3c27..69fab7f 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -3,6 +3,17 @@
 This file will contain a list of notable changes for each release. Note
 the information in this file is in reverse order.
 
+## OpenRC-x.xx
+
+The behaviour of localmount and netmount in this version is changing. In
+the past, these services always started successfully. In this version,
+they will be able to fail if file systems they mount fail to mount. If
+you have file systems listed in fstab which should not be mounted at
+boot time, make sure to add noauto to the mount options. If you have
+file systems that you want to attempt to mount at boot time but failure
+should be allowed, add nofail to the mount options for these file
+systems in fstab.
+
 ## OpenRC-0.14
 
 The binfmt service, which registers misc binary formats with the Linux

diff --git a/init.d/localmount.in b/init.d/localmount.in
index b2e8ef1..67e4303 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -29,9 +29,6 @@ start()
        ebegin "Mounting local filesystems"
        mount -at "$types" $no_netdev
        eend $? "Some local filesystem failed to mount"
-
-       # Always return 0 - some local mounts may not be critical for boot
-       return 0
 }
 
 stop()

diff --git a/init.d/netmount.in b/init.d/netmount.in
index 66ba409..2ce5c2a 100644
--- a/init.d/netmount.in
+++ b/init.d/netmount.in
@@ -27,7 +27,6 @@ start()
                rc=$?
        fi
        ewend $rc "Could not mount all network filesystems"
-       return 0
 }
 
 stop()

Reply via email to