Re: r228700 can't dhclient em0

看板FB_current作者時間14年前 (2011/12/21 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串15/27 (看更多)
--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--
文章代碼(AID): #1EyJtX8c (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1EyJtX8c (FB_current)