From owner-freebsd-questions@freebsd.org Tue Nov 6 22:38:42 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 719001103858 for ; Tue, 6 Nov 2018 22:38:42 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D117B73AE1 for ; Tue, 6 Nov 2018 22:38:41 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1541543922; x=1544135922; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:to:from:date:x-thread-info; bh=VE/55n/7bRHiUFoqjisxdBOfJ9Z/ljxbvr3ncv27oXc=; b=T31EM6x+BJojHaweRiJKPQvhyDwv3MygZ0n3tC1PZs2iYstT+UYAVwgnZCSUKbo+xcG2V3pICq66NUfHRiMPCW9vmAhhyywf+KS34EJ3PZy+lmt0g4rgdCr5mZZlpeKPUtfQVbWxXF09hWY9L6FFk29PAMzOCoinhX+3VK3grKg= X-Thread-Info: NDI1MC4xMi4xOWYwMDAwMDFiMWQ5NTIuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r2.us-east.aws.in.socketlabs.com (r2.us-east.aws.in.socketlabs.com [54.85.171.149]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 6 Nov 2018 17:38:30 -0500 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r2.us-east.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 6 Nov 2018 17:38:30 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gK9zQ-000FmM-GI for freebsd-questions@freebsd.org; Tue, 06 Nov 2018 22:38:28 +0000 Date: Tue, 6 Nov 2018 22:38:28 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: freebsd-update(8) and custom kernels Message-Id: <20181106223828.4e65f87c884b43c40f0231e3@sohara.org> In-Reply-To: References: <20181106170818.GD88460@mordor.lan> <20181106174215.43746c0a0f28d86dd4ef0e14@sohara.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D117B73AE1 X-Spamd-Result: default: False [-1.57 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.65)[-0.648,0]; R_DKIM_ALLOW(-0.20)[email-od.com]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[sohara.org]; FORGED_SENDER_VERP_SRS(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.42)[-0.423,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; MX_GOOD(-0.01)[cached: mxbh.socketlabs.com]; RCVD_IN_DNSWL_NONE(0.00)[198.176.0.142.list.dnswl.org : 127.0.15.0]; NEURAL_HAM_SHORT(-0.47)[-0.470,0]; ENVFROM_VERP(0.00)[]; FORGED_SENDER(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.02)[country: US(-0.08)]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org 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: Tue, 06 Nov 2018 22:38:42 -0000 On Tue, 6 Nov 2018 19:57:12 +0100 Aram Hăvărneanu wrote: > > I have used this procedure for upgrading several times now (most > > recently from 11.1 to 11.2 - and that box started on 9. so > > it's been through two major version upgrades). There's an extra > > freebsd-update install after the reboot but other than that it's fine > > IME, YMMV of course. > > I still don't understand how this works. To build the new kernel > for a newer RELEASE you need both the new binaries (which require > the new kernel to boot first), and the new sources (which don't > require anything). Building the kernel doesn't need the new binaries, otherwise a source upgrade would be impossible. The first install must install sources as well as the GENERIC kernel. > I assume you run freebsd-update first (which overwrites your kernel > with the GENERIC one), then run freebsd-update after you have booted > GENERIC (this will install new binaries, and I assume new sources), > then recompile and reinstall your custom kernel, and then reboot > again? No, I never boot into GENERIC, the procedure is exactly as Julien described apart from the extra make install after the reboot. -- Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/