From owner-freebsd-questions@freebsd.org Sat Feb 6 23:12:12 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 61BD953DCC1 for ; Sat, 6 Feb 2021 23:12:12 +0000 (UTC) (envelope-from 4250.82.1d4cd00023dab6e.cc8f10aa693bb6573cf5841a74033d69@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-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DY7NC3lW3z4pH8 for ; Sat, 6 Feb 2021 23:12:11 +0000 (UTC) (envelope-from 4250.82.1d4cd00023dab6e.cc8f10aa693bb6573cf5841a74033d69@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=1612653132; x=1615245132; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=SKdWC2c6vHiJrxgGc4l03jQHtk6vfPH0yU8T3RUjFMU=; b=RihYh64bnI3b8Eep8TJeVVrxxjHtoQVk7/FEey8mBlGxRpuMBC5H2EHyiiiM6bhNPOB+fmSTYGkKKwg/PUIWmv8zRNc6hY66+bGeF0ZrkXpwfWkUsN8WUfaXR49HNGMr0fCR/GIPXRLtFfGTP9DqFX5nOCsrEEs5X2cm3kSH2mY= X-Thread-Info: NDI1MC4xMi4xZDRjZDAwMDIzZGFiNmUuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r3.us-east-1.aws.in.socketlabs.com (r3.us-east-1.aws.in.socketlabs.com [142.0.191.3]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 6 Feb 2021 18:11:58 -0500 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r3.us-east-1.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 6 Feb 2021 18:11:57 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.94 (FreeBSD)) (envelope-from ) id 1l8Wk8-0005Gb-1z; Sat, 06 Feb 2021 23:11:56 +0000 Date: Sat, 6 Feb 2021 23:11:55 +0000 From: Steve O'Hara-Smith To: Frank Leonhardt Cc: freebsd-questions@freebsd.org Subject: Re: Is there an easy way to update your own kernel? Message-Id: <20210206231155.8c547a777879a55e291e1103@sohara.org> In-Reply-To: <2c5bec8a-aeeb-d9d2-6001-f63b97b8e90b@fjl.co.uk> References: <2c5bec8a-aeeb-d9d2-6001-f63b97b8e90b@fjl.co.uk> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd12.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DY7NC3lW3z4pH8 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=RihYh64b; dmarc=none; spf=pass (mx1.freebsd.org: domain of 4250.82.1d4cd00023dab6e.cc8f10aa693bb6573cf5841a74033d69@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.82.1d4cd00023dab6e.cc8f10aa693bb6573cf5841a74033d69@email-od.com X-Spamd-Result: default: False [-1.70 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[142.0.176.198:from]; SPAMHAUS_ZRD(0.00)[142.0.176.198:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FORGED_SENDER(0.30)[steve@sohara.org,4250.82.1d4cd00023dab6e.cc8f10aa693bb6573cf5841a74033d69@email-od.com]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.82.1d4cd00023dab6e.cc8f10aa693bb6573cf5841a74033d69@email-od.com]; MAILMAN_DEST(0.00)[freebsd-questions] 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: Sat, 06 Feb 2021 23:12:12 -0000 On Sat, 6 Feb 2021 22:57:07 +0000 Frank Leonhardt wrote: > I suspect there's no answer to this, but I'll ask it anyway. > > I have some tweaked drivers on my server cluster. I'd like to update > FreeBSD, but obviously keep my driver tweaks. I've found two ways of > doing this: > > 1) Upgrade from source, copying my own driver source over the "standard" > versions. > > 2) To save building everything on every machine, do a source upgrade and > then copy my custom kernel into /boot (using sftp) after a binary upgrade. This is how I do it. 3) Do a binary upgrade but have one machine with the sources installed (so that they get updated too) and on that machine build and install your custom kernel, on other machines just install it (mount sources or copy it). Update the kernel between running freebsd-update install and rebooting the machine. -- Steve O'Hara-Smith