From owner-freebsd-questions@FreeBSD.ORG Tue Sep 11 05:24:20 2007 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 F34F416A417 for ; Tue, 11 Sep 2007 05:24:19 +0000 (UTC) (envelope-from t41pad@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 9244B13C469 for ; Tue, 11 Sep 2007 05:24:19 +0000 (UTC) (envelope-from t41pad@googlemail.com) Received: by nf-out-0910.google.com with SMTP id k4so983271nfd for ; Mon, 10 Sep 2007 22:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=He28RxUE/u7qCQkBdCoxfNaIWCqsl7HNT8T0yMUAJ24=; b=dmcf4Vft16MQN6mnqc2sByU6n/BTW6lloKanYstU/41Y96y3IlYnlGwwu+9CeM7vfr+93Rygm8PgWSBOcOo8Tmri4xC2WsHLRyY0zDrgSGXZFo4qNLbWGh5vIeRdtpkY03FY7FQ71FlI4YE5rNs7Y6F8msO/gcaHtO5PoRt6y0I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QEorA+PPc7gp3KEYfyszXY4YP0EWaaBSYX6v7QeTVBjLdIG1nFeFFc41sFNWAt4CygNHwALZ22xQI6XQb0BgBKstsC53Duc4gHkFzmRkaShuVVm7sO5KjQB21QST211sRtfjpEfI9AbMCsY55+G8RAk6XFDId6tjovrUw4IgThc= Received: by 10.78.159.7 with SMTP id h7mr2324507hue.1189486681975; Mon, 10 Sep 2007 21:58:01 -0700 (PDT) Received: by 10.78.185.16 with HTTP; Mon, 10 Sep 2007 21:58:01 -0700 (PDT) Message-ID: <5a3499010709102158o4def6a84v3d2898e082abe0fa@mail.gmail.com> Date: Tue, 11 Sep 2007 14:28:01 +0930 From: "cracker jack" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: build and install a kernel to another mounted system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 05:24:20 -0000 Hi guys, I hope I'm posting in the right place. My situation is that I've got a laptop thats booted with a live-cd FreeSBIE. My laptops HD (/dev/ad0s1a) is mounted on /tmp/fixed and I'm trying to build and install a kernel to that mounted filesystem, with home, tmp, var and usr mounted on /tmp/fixed/home etc. I've got the kernel sources extracted to /tmp/fixed/usr/src/ by the following: # cd /path-to/6.2-RELEASE/src # cat ssys.[a-d]* | tar -zxvf - -C /tmp/fixed/usr/src # cat sbase.[a-d]* | tar -zxvf - -C /tmp/fixed/usr/src/ My custom kernel is in /tmp/fixed/root/kernels/CUSTOM, with a symlink from /tmp/fixed/usr/src/sys/i386/conf/CUSTOM pointing to it. But I'm getting errors when from /tmp/fixed/usr/src I run # make buildkernel KERNCONF=CUSTOM I've tried to run that under a chroot too: # chroot /tmp/fixed # setenv MAKEOBJDIRPREFIX /usr/obj2 # setenv DESTDIR / # make buildkernel KERNCONF=CUSTOM But I'm still getting errors, mainly with ACPI. Is it possible to do what I'm looking at? ie build a custom kernel using sources from a mounted filesystem, and install it to that mounted filesystem? Thanks plenty.