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 AF31E1388BF for ; Wed, 17 Feb 2016 14:06:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 95C9E21C091; Wed, 17 Feb 2016 14:06:23 +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 A7F3A21C08D for ; Wed, 17 Feb 2016 14:06:22 +0000 (UTC) Received: from [192.168.1.129] (ool-ad0217f7.dyn.optonline.net [173.2.23.247]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ryao) by smtp.gentoo.org (Postfix) with ESMTPSA id C39E8340C57 for ; Wed, 17 Feb 2016 14:06:21 +0000 (UTC) From: Richard Yao Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 (1.0) Subject: Re: [gentoo-dev] rfc: Does OpenRC really need mount-ro Message-Id: <3F10AFD6-E716-4608-A58A-78B3B48635F2@gentoo.org> Date: Wed, 17 Feb 2016 09:06:21 -0500 References: <20160216180533.GB1450@whubbs1.gaikai.biz> <56C3792A.3010602@gentoo.org> In-Reply-To: To: gentoo-dev@lists.gentoo.org X-Mailer: iPhone Mail (13D15) X-Archives-Salt: 5219e752-afad-4019-942a-e7ce269ea786 X-Archives-Hash: 564d5f99241436131eb782b0dc0bfdb5 > On Feb 16, 2016, at 3:18 PM, Rich Freeman wrote: >=20 >> On Tue, Feb 16, 2016 at 2:31 PM, Patrick Lauer wrote= : >>=20 >> The failure message comes from rc-mount.sh when the list of PIDs using a >> mountpoint includes "$$" which is shell shorthand for self. How can the >> current shell claim to be using /usr when it is a shell that only has >> dependencies in $LIBDIR ? >> As far as I can tell the code at this point calls fuser -k ${list of >> pids}, and fuser outputs all PIDs that still use it. I don't see how $$ >> can end up in there ... >=20 > What does openrc do when the script fails? Just shut down the system anyw= ay? >=20 > If you're going to shut down the system anyway then I'd just force the > read-only mount even if it is in use. That will cause less risk of > data loss than leaving it read-write. >=20 > Of course, it would be better still to kill anything that could > potentially be writing to it. Agreed. >=20 > --=20 > Rich >=20