From owner-freebsd-questions@freebsd.org Tue Jul 7 16:20:37 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 03272996AF3 for ; Tue, 7 Jul 2015 16:20:37 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 CF2121C5B for ; Tue, 7 Jul 2015 16:20:36 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A09D92016A for ; Tue, 7 Jul 2015 12:20:35 -0400 (EDT) Received: from web3 ([10.202.2.213]) by compute4.internal (MEProxy); Tue, 07 Jul 2015 12:20:35 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=I/WFBpmqsFAQtNY RNhgT4c/TXng=; b=G/BOFAUSdP/q6CDkpUPU2TuWGGwr1mcOXVl6Ixz9z4E86KY s29AsUc46sLH20/Zve/Bamw5dDBfMQHf0QpbPgOe6KD0inOu1V1nPK7w1cREi/K5 H8wphsVgDz4esId8ZP+m4k++l6ZU02WAm3c2eLqPuC9jqk7rwhO6BQy1A2Ts= Received: by web3.nyi.internal (Postfix, from userid 99) id 717CE11596A; Tue, 7 Jul 2015 12:20:35 -0400 (EDT) Message-Id: <1436286035.549129.317483193.2DD044D1@webmail.messagingengine.com> X-Sasl-Enc: iCdArFKYP/shniomyMSKoB/10IxFRwZqcmEMmzhSip/e 1436286035 From: Mark Felder To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-bfc056ae In-Reply-To: <20150707172116.2aa2d38a@jive.levalinux.org> References: <20150707172116.2aa2d38a@jive.levalinux.org> Subject: Re: own kernel vs. update Date: Tue, 07 Jul 2015 11:20:35 -0500 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 16:20:37 -0000 On Tue, Jul 7, 2015, at 10:21, 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? How can I prevent upgrades to overwrite my own kernel? > > Sahll I recompile my kernel? If the source is not updated, why the > binary modules? > > Thanks, > Levente > When I do this I like to install my kernel to a custom directory make installkernel KERNCONF=whatever KODIR=/boot/foo Now the kernel goes into /boot/foo You can ensure the system uses this kernel at boot by putting kernel="foo" in /boot/loader.conf You can also put kernels="foo,bar,baz" in loader.conf if you want the boot menu to have those kernels listed as options.