From owner-freebsd-questions@freebsd.org Thu Apr 30 13:46:59 2020 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 28DA52BD96D for ; Thu, 30 Apr 2020 13:46:59 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from mx.sdf.org (mx.sdf.org [205.166.94.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.sdf.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49CcBB16K8z4mW8 for ; Thu, 30 Apr 2020 13:46:57 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from sdf.org (IDENT:bennett@miku.sdf.org [205.166.94.6]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 03UDksBE003291 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 30 Apr 2020 13:46:55 GMT Received: (from bennett@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 03UDkr12006318; Thu, 30 Apr 2020 08:46:53 -0500 (CDT) From: Scott Bennett Message-Id: <202004301346.03UDkr12006318@sdf.org> Date: Thu, 30 Apr 2020 08:46:52 -0500 To: freebsd-questions@freebsd.org Subject: Re: Updating from 11.3-stable to 12.1-stable? References: In-Reply-To: User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49CcBB16K8z4mW8 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bennett@sdf.org designates 205.166.94.20 as permitted sender) smtp.mailfrom=bennett@sdf.org X-Spamd-Result: default: False [-1.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.990,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-0.99)[-0.986,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[sdf.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[20.94.166.205.list.dnswl.org : 127.0.10.0]; IP_SCORE(-0.22)[ip: (-0.70), ipnet: 205.166.94.0/24(-0.35), asn: 14361(-0.01), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:14361, ipnet:205.166.94.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2020 13:46:59 -0000 On Wed, 29 Apr 2020 16:27:54 -0500 Bob Willcox wrote: > > Well, here are the steps that I took to upgrade my 11.3-STABLE system to > 12.1-STABLE. May not be the best/most efficient but they worked for me > and I thought someone else may benefit from them. > > 1) Make a backup of the current system > 2) Delete everything in /usr/src, making certin to remove the files and directories > that start with a dot ("."). > 3) Delete everything in /usr/obj. > 4) Download (via svn) the new FreeBSD release /usr/src to be updated to. > 5) Build the new world from the source. > 6) Build the new kernel from the source. > 7) Run "mergemaster -Fp" to update files that may be needing update prior to > doing the installworld. > 8) Run "make installworld" in /usr/src. > 9) Run "make installkernel" in /usr/src. > 10) Run "mergemaster -iU" do update any remaining files that need to be updated. > 11) Reboot the system. > 12) Run "pkg update" to update the pkg database to the new system's level. > 13) Run "pkg upgrade" to update all packages to reflect the new system's level. > 14) Reboot the system. > If you did things as you state and it worked, you got lucky. Your step 7) has to be run in /usr/src, just like 8) and 9) and 10). 8) and 9) appear above in reversed order. Also, you omitted 8.5). Steps 8) through 9) should have been: 8) Run "make installkernel" in /usr/src. 8.5) Reboot. IFF this new kernel comes up correctly, then proceed to step 9). 9) Run "make installworld" in /usr/src. Not doing it like this runs a grave risk of needing to restore the system from backups to make it usable again. The last time I looked at it, the Handbook laid this procedure out clearly. Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at sdf.org *xor* bennett at freeshell.org * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * **********************************************************************