From owner-freebsd-questions@freebsd.org Thu Apr 30 14:57:10 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 4D4502BFE56 for ; Thu, 30 Apr 2020 14:57:10 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 49Cdl933QQz4txc for ; Thu, 30 Apr 2020 14:57:09 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from [192.168.43.113] (unknown [172.58.139.224]) (Authenticated sender: galtsev) by kicp.uchicago.edu (Postfix) with ESMTPSA id AC99D4E620 for ; Thu, 30 Apr 2020 09:57:03 -0500 (CDT) Subject: Re: Updating from 11.3-stable to 12.1-stable? To: freebsd-questions@freebsd.org References: <202004301346.03UDkr12006318@sdf.org> <20200430145227.GD1510@rancor.immure.com> From: Valeri Galtsev Message-ID: <18b531f4-8f77-f448-c2ab-c670b7d13e46@kicp.uchicago.edu> Date: Thu, 30 Apr 2020 09:57:02 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200430145227.GD1510@rancor.immure.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49Cdl933QQz4txc X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=uchicago.edu (policy=none); spf=none (mx1.freebsd.org: domain of galtsev@kicp.uchicago.edu has no SPF policy when checking 128.135.20.70) smtp.mailfrom=galtsev@kicp.uchicago.edu X-Spamd-Result: default: False [0.68 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[uchicago.edu : No valid SPF, No valid DKIM,none]; RECEIVED_SPAMHAUS_PBL(0.00)[224.139.58.172.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; NEURAL_SPAM_LONG(0.25)[0.249,0]; NEURAL_HAM_MEDIUM(-0.76)[-0.762,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:160, ipnet:128.135.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.09)[ip: (0.27), ipnet: 128.135.0.0/16(0.13), asn: 160(0.11), country: US(-0.05)]; 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 14:57:10 -0000 On 4/30/20 9:52 AM, Bob Willcox wrote: > On Thu, Apr 30, 2020 at 08:46:52AM -0500, Scott Bennett wrote: >> On Wed, 29 Apr 2020 16:27:54 -0500 Bob Willcox wrote: Thank you, Bob and Scott, your instructions are brilliant, and thanks, Polytropon, for extra insights. Valeri >>> >>> 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: > > Yes, step was run from /usr/src. I just failed to point that out. I was still in > that directory after the builds completed. > > As for the order of installworld and installkernel. I used to run them in the > order you suggest but found that, as I recall, doing the installkernel first > didn't always work when I had the nvidia driver specified in my /etc/src.conf > file. The details are a bit hazy now, but by installing world first the nvidia > driver was successfully built from ports during the installkernel step. > >> >> 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. > > Well, as I have said, perhaps I've been incredibly lucky for these past 20+ > years that I've been doing it this way as I have had no such incidents. I don't > doubt that there are risks, just updating a system carries some pretty significant > risks. > > Guess I sorry I said anything about this...didn't mean to get people riled up. > > Bob > >> >> >> 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 * >> ********************************************************************** > -- ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++