From owner-freebsd-questions@freebsd.org Tue Jul 7 15:29:13 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2FEA7995CD1 for ; Tue, 7 Jul 2015 15:29:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E34D5167B for ; Tue, 7 Jul 2015 15:29:12 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-74-114.dynamic.qsc.de [92.195.74.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id EC5B9276A3; Tue, 7 Jul 2015 17:29:02 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t67FT2Fw003508; Tue, 7 Jul 2015 17:29:02 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 7 Jul 2015 17:29:02 +0200 From: Polytropon To: Lev Cc: freebsd-questions@freebsd.org Subject: Re: own kernel vs. update Message-Id: <20150707172902.99e4afc5.freebsd@edvax.de> In-Reply-To: <20150707172116.2aa2d38a@jive.levalinux.org> References: <20150707172116.2aa2d38a@jive.levalinux.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2015 15:29:13 -0000 On Tue, 7 Jul 2015 17:21:16 +0200, Lev wrote: > So, I built my own kernel to have OSS4 support. Then I updated the base > system to p14, and I saw that the kernel and zfs.ko and ufs.ko is > overwritten in /boot/kernel. > > Is this okay? At least it is to be expected. > How can I prevent upgrades to overwrite my own kernel? In /etc/freebsd-update.conf, remove the word "kernel" from the line "Components src world kernel". Keep "src" included so the sources will reflect the kernel and the world you're running after the update. > Sahll I recompile my kernel? Yes. World and kernel should be in sync, so your sources should be of the same version as the world and the kernel (you're going to build from them). With freebsd-update, this can be done easily as explained. > If the source is not updated, why the > binary modules? Source and modules are handled independently. Maybe a change has not been made to an individual module, but to one of its dependencies which leads to a "slightly different" module as a result. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...