From owner-freebsd-questions@freebsd.org Sun Feb 28 23:52:57 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5AB9D55058A for ; Sun, 28 Feb 2021 23:52:57 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DpgF524Gmz3N8h; Sun, 28 Feb 2021 23:52:57 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from [172.16.67.1] (unknown [IPv6:2620:0:2820:2:5163:941c:c7cd:70c0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gad/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 24F2E2C85A; Sun, 28 Feb 2021 23:52:57 +0000 (UTC) (envelope-from gad@FreeBSD.org) From: "Garance A Drosehn" To: "Michael Sierchio" Cc: "Janos Dohanics" , "FreeBSD Questions" Subject: Re: Panic after updating from source Date: Sun, 28 Feb 2021 18:52:55 -0500 X-Mailer: MailMate (1.13.2r5673) Message-ID: In-Reply-To: References: <20210228023827.f68e6136d688c0a37206c883@3dresearch.com> <20210228120313.cdb53cab429a38fdf9817d0d@3dresearch.com> MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2021 23:52:57 -0000 On 28 Feb 2021, at 13:04, Michael Sierchio wrote: > On Sun, Feb 28, 2021 at 9:04 AM Janos Dohanics wrote: > >> On Sun, 28 Feb 2021 07:37:37 -0800 >> Michael Sierchio wrote: >> >>> On Sat, Feb 27, 2021 at 11:39 PM Janos Dohanics >> wrote: >>> >>>> Hello Experts, >>>> >>>> After updating my FreeBSD 12 workhorse panics on boot. >>>> >>>> I have updated /usr/src, then >>>> >>>> make buildworld >>>> make buildkernel KERNCONF=MYKERNEL >>>> make installkernel KERNCONF=MYKERNEL >>> >>> >>> make installworld ?! >> >> You have to reboot with the new kernel before executing 'make >> installworld'. >> >> > That's not strictly factual. In fact, if you don't installworld before > booting, you can have a mismatch between userland and kernel interfaces. > > make buildworld && make kernel && make installworld && reboot > > that always works for me when following a -STABLE branch. It may happen to work for you many times in a row, until the day it does not work and then you're screwed. The official instructions state that you should always reboot into single-user mode before doing 'make installworld'. The instructions are what they are based on a lot of experience. It is true that if you are someone who rebuilds frequently (so your systems are only a week or two out-of-date), you can probably get away with cutting corners. But don't tell other people to cut corners when you have no idea how up-to-date their system was before they started the upgrade. We have frequently seen people who are furious when their system breaks after they've upgraded from source, and frequently the reason their system broke is that they "got away" with cutting corners for 20 times in a row. And then they hit the first time that they were not able get away with cutting corners. And they always blame us developers when in fact they're not following instructions. To quote from /usr/src/UPDATING: ... Then, carefully follow the full procedure documented below under the heading "To rebuild everything and install it on the current system." Specifically, a reboot is -> required <- after installing the new kernel before installing world. While an installworld normally works -> by accident <- from multiuser after rebooting the proper kernel, there are many cases where this will fail across this upgrade and installworld from single user is required. So, if you're going to say the magic words of "strictly factual", then please quote the actual instructions and not your anecdotal experience. I've been building freebsd for 25 years, and yes I've gotten away with short cuts many times. But I've also had a few times when I've been burned severely by taking those shortcuts. So I always point people at the official instructions, and at least publicly pretend that I always follow them. BTW, VMware-level system snapshots can be very useful things... -- Garance Alistair Drosehn = drosih@rpi.edu Lead Developer @rpi and gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA