diff options
author | Alan Somers <asomers@gmail.com> | 2016-12-16 22:51:13 -0700 |
---|---|---|
committer | Doug Freed <dwfreed@mtu.edu> | 2016-12-17 13:35:58 -0500 |
commit | 5b7e3490ef2ce96c35e6c18b4c64e8c61586bb7a (patch) | |
tree | a6ff15c4bc7d9f02287aca264a8ad576bd33b24c /init.d/localmount.in | |
parent | dd61e6bfc3fc1da011b01f4f6cf3e45e26c59dc1 (diff) |
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.
Diffstat (limited to 'init.d/localmount.in')
-rw-r--r-- | init.d/localmount.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |