From owner-freebsd-current@FreeBSD.ORG Wed Dec 21 01:53:49 2011 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 3A2001065672; Wed, 21 Dec 2011 01:53:49 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id BC03B8FC1F; Wed, 21 Dec 2011 01:53:47 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.4/8.14.4) with ESMTP id pBL1qfT4082043; Tue, 20 Dec 2011 19:52:41 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.4/8.14.4/Submit) id pBL1qf43082042; Tue, 20 Dec 2011 19:52:41 -0600 (CST) (envelope-from brooks) Date: Tue, 20 Dec 2011 19:52:41 -0600 From: Brooks Davis To: Gleb Smirnoff Message-ID: <20111221015241.GE68792@lor.one-eyed-alien.net> References: <4EEF0124.4000902@FreeBSD.org> <4EEF3B22.8010401@FreeBSD.org> <4EF0499D.4070000@FreeBSD.org> <20111220191520.GA70684@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HnQK338I3UIa/qiP" Content-Disposition: inline In-Reply-To: <20111220191520.GA70684@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current , Doug Barton , Dimitry Andric Subject: Re: r228700 can't dhclient em0 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: Wed, 21 Dec 2011 01:53:49 -0000 --HnQK338I3UIa/qiP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 20, 2011 at 11:15:20PM +0400, Gleb Smirnoff wrote: > Doug, >=20 > On Tue, Dec 20, 2011 at 12:38:53AM -0800, Doug Barton wrote: > D> > I saw this too, when my kernel and userland were out of sync (e.g. j= ust > D> > after installing a new kernel, and before installworld). I suspect = it > D> > is caused by the changes in r228571, which cause old ifconfig and > D> > dhclient to not recognize any interfaces. I'm not 100% sure though.= =2E. > D>=20 > D> I tried replacing both ifconfig and dhclient with the versions that we= re > D> built along with the new kernel, and that didn't work. >=20 > This shouldn't happen. If you did 'make buildworld buildkernel', then > your world in objdir would have binaries compiled with includes from > source tree, not from /usr/include, thus compatible with new kernel. >=20 > 'make buildworld buildkernel' always produces compatible kernel and > worlds. >=20 > However, if you did 'cd /usr/src/sbin/ifconfig && make all install' then > that didn't work, since used headers from /usr/include. >=20 > D> The traditional (and documented) upgrade process for many years has be= en > D> to boot the new kernel, make sure it's Ok, then update world. Obviously > D> something different is needed this time, so it needs an UPDATING entry > D> (assuming that all this is not just a bug). >=20 > The documented one says 'Reboot into single user mode' and then install > new world. This path was not broken, since single user mode doesn't > imply network support. While this is the documented path, it's not actually been required except in edge cases for ages (the last I can remember is a.out->elf). It's been long enough that I don't think we can really make people do it except for a short period of time in HEAD. I believe it's unacceptable for a release to release upgrade. > The undocumented brave way 'make installkernel installworld && reboot' > works also, without any problems. At least until someone screws up something else and you now can't use kernel.old either. This is somewhat ok for HEAD users, but I think we should try harder to avoid this sort of situation. -- Brooks --HnQK338I3UIa/qiP Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFO8TvoXY6L6fI4GtQRAiJBAJ0VBuNCY6QOQIiDwKwqgHpI8gxTewCfZkHW 9PWeXG2xUFPzDC+xOvaZaTc= =8sY3 -----END PGP SIGNATURE----- --HnQK338I3UIa/qiP--