From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 91E231384C3 for ; Mon, 7 Sep 2015 13:31:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B9E21418A; Mon, 7 Sep 2015 13:31:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2DF661418A for ; Mon, 7 Sep 2015 13:31:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 464E83402A2 for ; Mon, 7 Sep 2015 13:31:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E04BA17A for ; Mon, 7 Sep 2015 13:31:10 +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: <1441136467.b047ea47e97d7e8b96d6d0e064613f6860c8eb36.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/localmount.in init.d/netmount.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: b047ea47e97d7e8b96d6d0e064613f6860c8eb36 X-VCS-Branch: master Date: Mon, 7 Sep 2015 13:31:10 +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: 37a8a7bc-a2d8-4505-91e0-686a2c3c589a X-Archives-Hash: 3d90579f27f4d1e4d4e4f4d4bdf985c5 commit: b047ea47e97d7e8b96d6d0e064613f6860c8eb36 Author: William Hubbs gmail com> AuthorDate: Tue Sep 1 19:41:07 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Sep 1 19:41:07 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=b047ea47 localmount/netmount: on Linux, fail if some file systems do not mount The following return codes are returned by mount -a: 0: all file systems mounted. 32: no file systems mounted. 64: some file systems mounted. The localmount/netmount services should fail if all file systems that should mount did not mount. init.d/localmount.in | 2 -- init.d/netmount.in | 2 -- 2 files changed, 4 deletions(-) diff --git a/init.d/localmount.in b/init.d/localmount.in index 7b94790..f4bf15f 100644 --- a/init.d/localmount.in +++ b/init.d/localmount.in @@ -31,8 +31,6 @@ start() rc=$? if [ "$RC_UNAME" != Linux ]; then rc=0 - elif [ "$rc" = 64 ]; then - rc=0 fi return $rc } diff --git a/init.d/netmount.in b/init.d/netmount.in index 9f8537d..d9cf9c5 100644 --- a/init.d/netmount.in +++ b/init.d/netmount.in @@ -25,8 +25,6 @@ start() ewend $rc "Could not mount all network filesystems" if [ "$RC_UNAME" != Linux ]; then rc=0 - elif [ "$rc" = 64 ]; then - rc=0 fi return $rc }