From owner-freebsd-current@FreeBSD.ORG Fri Aug 7 19:14:55 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47C461065670 for ; Fri, 7 Aug 2009 19:14:55 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 0F0098FC1A for ; Fri, 7 Aug 2009 19:14:55 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 7DED61CD18; Fri, 7 Aug 2009 21:14:54 +0200 (CEST) Date: Fri, 7 Aug 2009 21:14:54 +0200 From: Ed Schouten To: Chris Ruiz Message-ID: <20090807191454.GP1292@hoeg.nl> References: <4A7C7220.2090309@mykitchentable.net> <4A7C72E0.8080303@acm.poly.edu> <4A7C77B6.8000209@mykitchentable.net> <58c737d70908071156l2f5f2deds526a996ef9f386b@mail.gmail.com> <20090807190350.GO1292@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lXGjgdROvQphKPvG" Content-Disposition: inline In-Reply-To: <20090807190350.GO1292@hoeg.nl> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current@freebsd.org Subject: Re: [Fwd: How To Recover From Missing /lib/libc.so.7?] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2009 19:14:55 -0000 --lXGjgdROvQphKPvG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ed Schouten wrote: > * Chris Ruiz wrote: > > You must specify NO_FSCHG=3D when you installworld on an unupgraded ZFS > > filesystem, otherwise you will lose libc.so.7! I'll spare you the > > details on why this happens. >=20 > Which is because our install(1) is stupid enough to delete the resulting > binary if it can't add the schg flag. We should really change this > behaviour. It looks like there are actually two bugs: - install(1) does check for EOPNOTSUPP, while ZFS seems to return EINVAL. This is probably a ZFS bug. - Inside jails, (un)setting schg is not permitted and returns EPERM. We should change the VFS to return EOPNOTSUPP or install(1) to allow EPERM as well. It's a bit late, but I think it would be nice to have this fixed before 8.0. --=20 Ed Schouten WWW: http://80386.nl/ --lXGjgdROvQphKPvG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkp8fS4ACgkQ52SDGA2eCwVsKgCfRZGYFolUgC1dbOrRpxd9m/cD NOoAniSNID0qpRkcUNgufuxoSFDiy1iG =G+7y -----END PGP SIGNATURE----- --lXGjgdROvQphKPvG--