From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4E480139085 for ; Sat, 17 Dec 2016 22:57:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 98557E0C1F; Sat, 17 Dec 2016 22:57:06 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 790ABE0C1F for ; Sat, 17 Dec 2016 22:57:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BE4AA340A23 for ; Sat, 17 Dec 2016 22:57:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 368EA4A9 for ; Sat, 17 Dec 2016 22:57:04 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1481999758.5b7e3490ef2ce96c35e6c18b4c64e8c61586bb7a.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/localmount.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 5b7e3490ef2ce96c35e6c18b4c64e8c61586bb7a X-VCS-Branch: master Date: Sat, 17 Dec 2016 22:57:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d038e9d6-533f-4ce0-9a1f-30e06b08b66e X-Archives-Hash: 24bb425b70fedb446d7a096eee2e0dad commit: 5b7e3490ef2ce96c35e6c18b4c64e8c61586bb7a Author: Alan Somers gmail com> AuthorDate: Sat Dec 17 05:51:13 2016 +0000 Commit: William Hubbs gentoo 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