From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 21 21:07:03 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AB2F16A420 for ; Tue, 21 Feb 2006 21:07:03 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B30A43D45 for ; Tue, 21 Feb 2006 21:07:03 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 202FD1A3C22; Tue, 21 Feb 2006 13:07:03 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 7D98A528E5; Tue, 21 Feb 2006 16:07:00 -0500 (EST) Date: Tue, 21 Feb 2006 16:07:00 -0500 From: Kris Kennaway To: Boris Samorodov Message-ID: <20060221210659.GA64256@xor.obsecurity.org> References: <59887930@srv.sem.ipt.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <59887930@srv.sem.ipt.ru> User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@FreeBSD.org Subject: Re: linprocfs and linux_base port upgrade X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 21:07:03 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 21, 2006 at 03:52:05PM +0300, Boris Samorodov wrote: > Hi! >=20 >=20 > Assume that one has a linux_base port installed and linprocfs is > mounted. The task is to upgrade the linux_base port. We do: > - Un-mounting linprocfs; > - deletting /compat/linux (along /compat/linux/proc); > - ... >=20 > The problem: a short period of time (well, it may be not so short > accoring to various curcumstances) exists when there _is no_ > /compat/linux/proc directory and linprocfs _is_ defined at > /etc/fstab. If something goes wrong when upgrading (system panic, port > upgrading errors, etc) one can get an unbootable machine. >=20 > I think that a linux_base port should: > - comment the linprocfs definition right after removing > /compat/linux/proc directory; > - remove the comment after creating the needed directory. >=20 > The comment itself should be a readable and unique one (ie all > linux_base ports should use the same text). Ex.: > "#*linux_base autocomment*". >=20 >=20 > Do you have some other ideas? Actually, this unmount ... remount situation is pretty evil. For example, it prevents users from building linux_base in a jail. In fact I'd like to switch to building packages in jails instead of chroots on the package cluster, but this is the major reason I can't. Is it possible to avoid this? e.g. by preventing cpio from recursing into the /compat/linux/proc directory. Kris --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD+4DzWry0BWjoQKURAsmtAKDcjFaOvXum6p0ScSSifSAZdpGPSwCg8g4K 8IyrS94KUhNlKWvafiAbH9w= =qBcU -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--