From owner-freebsd-questions@FreeBSD.ORG Wed Jan 2 19:18:48 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 386693DA for ; Wed, 2 Jan 2013 19:18:48 +0000 (UTC) (envelope-from ascherrer@gmail.com) Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by mx1.freebsd.org (Postfix) with ESMTP id BC2FF1E95 for ; Wed, 2 Jan 2013 19:18:47 +0000 (UTC) Received: by mail-ee0-f45.google.com with SMTP id d49so6972677eek.18 for ; Wed, 02 Jan 2013 11:18:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=BifYOD6lhuxNa1v45j45l6AXBUL/VeGFoUnC8854PPE=; b=mQoCnoJSv4cQ5tD2z+To12V8UuLhcmw4eV13SbC8uZtKA+6SsYm/jqk/bZaiOznlb4 uH8sZwfC83Qs3eIMQgmMyQ1/Ybx8a4E3pkyNCfkTJX4DtR1QeRaP4TlBqfr9DKTuh1SX wHRc0lNqWYpg1TkiQp/NxUZWl/a57Ksvxcp0CcUzXeqQOxNL8ppybYV4KKhMvy885J7M P/LeYVpUJSvtZoXjkJF5OoiedO3DhNa3sHdkkwmyJo8apac0GDKcQpekRfcllfWeIKi9 Toqqey72bToP2ZSnNJzxjBC3XfeSttKYsE4oWIFQUJQyXh/Rucjto6PRG78/RGYHqHTU 8vfQ== X-Received: by 10.14.204.198 with SMTP id h46mr128179832eeo.1.1357154321559; Wed, 02 Jan 2013 11:18:41 -0800 (PST) Received: from manzana.hws.homeip.net ([2001:470:b71d:1:225:ff:fef2:447f]) by mx.google.com with ESMTPS id d3sm99332836eeo.13.2013.01.02.11.18.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Jan 2013 11:18:40 -0800 (PST) Message-ID: <50E4880E.8030105@gmail.com> Date: Wed, 02 Jan 2013 20:18:38 +0100 From: andreas scherrer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Paul Schmehl Subject: Re: freebsd-update patches custom /boot/kernel/kernel which it should not References: <50E4724E.9050706@gmail.com> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 19:18:48 -0000 on 2.1.13 19:15 Paul Schmehl said the following: > --On January 2, 2013 6:45:50 PM +0100 andreas scherrer >> And from experience this is what it will do: replace /boot/kernel/kernel >> which is my custom kernel with a GENERIC kernel. >> >> As it seems that freebsd-update works by comparing a hash of >> /boot/kernel/kernel with the GENERIC kernel's hash I checked the md5 and >> sha1 hash of /boot/kernel/kernel and /boot/GENERIC/kernel. They differ >> (see [3]). >> >> So why is freebsd-update going to overwrite my custom kernel? And how >> can I prevent it from doing so? >> > > Read man (5) freebsd-update.conf. Particularly the COMPONENTS portion > that explains how to update world without changing kernel. Thanks for pointing this out. I might change my freebsd-update.conf to not update the kernel. But still I believe this to be more of a kludge than a solution: in my opinion the handbook suggests that a custom kernel should be detected and left alone. But at the same time a GENERIC kernel in /boot/GENERIC should be patched. http://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html ----- However, freebsd-update will detect and update the GENERIC kernel in /boot/GENERIC (if it exists), even if it is not the current (running) kernel of the system. ----- Furthermore if I remove the kernel option from the COMPONENTS in freebsd-update.conf I think I will not get the kernel source patches anymore, right? Which in turn means I have to get them via some other mechanism, no? >From the same link as above to the handbook: ----- Unless the default configuration in /etc/freebsd-update.conf has been changed, freebsd-update will install the updated kernel sources along with the rest of the updates. ----- I think something does not add up here but I can't get my head around it (yet?).