commit: 5b7e3490ef2ce96c35e6c18b4c64e8c61586bb7a
Author: Alan Somers <asomers <AT> gmail <DOT> com>
AuthorDate: Sat Dec 17 05:51:13 2016 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Dec 17 18:35:58 2016 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=5b7e3490
Localmount shouldn't mount remote filesystems
The /etc/init.d/localmount script has a syntax error that causes it to
attempt to mount remote filesystems, causing the boot to fail. The
script appends a "no" to each remote filesystem type, but it should only
be append the "no" to the beginning of the list. This patch fixes
localmount on FreeBSD 12.0. A review of the mount(8) manpage on Ubuntu
12.04 suggests that this patch is correct for Linux, too.
init.d/localmount.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init.d/localmount.in b/init.d/localmount.in
index c953524..f02f929 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -24,7 +24,7 @@ start()
# Mount local filesystems in /etc/fstab.
local critical= types="noproc" x= no_netdev= rc=
for x in $net_fs_list $extra_net_fs_list; do
- types="${types},no${x}"
+ types="${types},${x}"
done
if [ "$RC_UNAME" = Linux ]; then