From 5b7e3490ef2ce96c35e6c18b4c64e8c61586bb7a Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Fri, 16 Dec 2016 22:51:13 -0700 Subject: 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 c953524b..f02f9296 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 -- cgit v1.2.3