From owner-freebsd-questions@FreeBSD.ORG Sat Nov 22 19:41:41 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 443B3A8D for ; Sat, 22 Nov 2014 19:41:41 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 1C487B88 for ; Sat, 22 Nov 2014 19:41:40 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 47B0B33C1D; Sat, 22 Nov 2014 14:41:29 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 2036939822; Sat, 22 Nov 2014 14:41:27 -0500 (EST) From: Lowell Gilbert To: Marko Turk Subject: Re: Handbook update section for custom kernel References: <20141119184230.GA36984@vps.markoturk.info> <20141122182341.GA45900@vps.markoturk.info> Reply-To: freebsd-questions@freebsd.org Date: Sat, 22 Nov 2014 14:41:27 -0500 In-Reply-To: <20141122182341.GA45900@vps.markoturk.info> (Marko Turk's message of "Sat, 22 Nov 2014 19:23:41 +0100") Message-ID: <44a93jyqe0.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2014 19:41:41 -0000 Marko Turk writes: Marko Turk writes: > On Wed, Nov 19, 2014 at 07:42:30PM +0100, Marko Turk wrote: >> Hi, >> >> in handbook, section 24.2.3.1. Custom Kernels with FreeBSD 9.X and Later >> says: >> "Before using freebsd-update, ensure that a copy of the GENERIC kernel >> exists in /boot/GENERIC. If a custom kernel has only been built once, >> the kernel in /boot/kernel.old is the GENERIC kernel. Simply rename this >> directory to /boot/kernel." >> >> Should the last sentence be >> "Simply rename this directory to /boot/GENERIC." >> >> or am I missing something? > > Update: > I tried again and freebsd-update always updates my custom kernl in /boot/kernel/ > although I copied generic kernel to /boot/GENERIC/. Those things have nothing to do with each other. > This happens both when applying security patches (e.g. 10.0 to 10.0-p12) > and when I upgrade from 10.0-RELEASE to 10.1-RELASE. > > Is this a problem with freebsd-update? By default, freebsd-update installs a new GENERIC kernel to match the userland. If you don't want it to do this, you configure it not to [by leaving out the "kernel" part of the "Components" in freebsd-update.conf(5)]. In most cases, many would consider it safer to let freebsd-update give you a new GENERIC kernel and only update to a customized kernel later, after you know the upgrade is working properly. If your system won't be able to boot and build more kernels under a GENERIC kernel, that would be different, but that situation has become exceedingly rare in recent years.