From owner-freebsd-questions@FreeBSD.ORG Sun Feb 14 17:14:51 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B3621065693 for ; Sun, 14 Feb 2010 17:14:51 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by mx1.freebsd.org (Postfix) with ESMTP id 026638FC26 for ; Sun, 14 Feb 2010 17:14:50 +0000 (UTC) Received: by ewy3 with SMTP id 3so4348269ewy.13 for ; Sun, 14 Feb 2010 09:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:cc:content-type; bh=CE212abhZU4B1dXVdcJbbLF6fjzFG8QcZgM8c0GL7nQ=; b=gj6NP8dTLAMVX3jXplQnzgPjUt+g/8MOvLMLIrj/LLIL1QYWjzjCyjdpi/yWaEtKqc EhfcjDyEp15sL8QeBeP2Eq27gmsCg49vl3eqf2NDJoC8LKY6T1i09nFvzElb4+uN9pHG Sgf6+sVJcgxLShO5A9t8HQCa0WPgX4JWE3Gow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=b/BPtdm4ZdWiUc+6XB/pQk2JhLlK+uQwBLseKHscALBfSTF4ahWB4rcbBijH8ulqpb MAfbw+pCCiACuiEBb4FnbRXI2SsHq/EzcTUXwM2VCJtp/KmAb2igywpmH4qGPdzHywsN p02NzV0o7+b0Qc91nlYyBDU1rdNx+Z1EB6+bA= MIME-Version: 1.0 Received: by 10.216.85.2 with SMTP id t2mr2559890wee.172.1266167689789; Sun, 14 Feb 2010 09:14:49 -0800 (PST) Date: Sun, 14 Feb 2010 12:14:49 -0500 Message-ID: From: "b. f." To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Derek Funk Subject: Re: custom kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2010 17:14:51 -0000 Derek Funk wrote: >On 2/13/2010 5:31 AM, Erik Norgaard wrote: >> On 13/02/10 04:08, Derek Funk wrote: >>> I am trying to find how to install a custom kernel at installation. I >>> have found an option in sysinstall to select a kernel. How do I add my >>> own to the options so I can select it? >> >> I think the standard procedure is to install the generic kernel at >> installation then install your custom kernel afterwards. You should >> always keep the generic kernel to fall back on in case of any problems. >> >> BR, Erik >> >My kernel is basiclly is the generic kernel just with some added options >and removed devices i don't have. I have built and installed many times >after installation. I play around with this machine a lot and just want >to be able to have my kernel installed at installation. If it's just one machine, and you are building the custom kernel on it, why not just use: make kernel KERNCONF= as described in /usr/src/UPDATING? Why use sysinstall at all? If you are building custom release media, or using a custom network install, then you can modify sysinstall with scripts, as described in sysinstall(8), release(7), ch.3 and 5 of http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/index.html , the sample install.cfg file, and http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pxe/article.html Or you can take an alternative approach that doesn't use sysinstall, as in: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/index.html or http://www.freebsd.org/doc/en_US.ISO8859-1/articles/nanobsd/index.html