From owner-freebsd-questions@FreeBSD.ORG Sat May 14 18:24:19 2011 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 4B7201065674 for ; Sat, 14 May 2011 18:24:19 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id F34208FC15 for ; Sat, 14 May 2011 18:24:18 +0000 (UTC) Received: by qwc9 with SMTP id 9so2280152qwc.13 for ; Sat, 14 May 2011 11:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:references :in-reply-to:cc:mime-version:content-type:content-transfer-encoding :message-id; bh=AsEPBp2fHS2pkRaL/Ao/+gQ8YHOoUDsXFqnehMLj4Co=; b=j+C/g2DrsXfkZv4q3vbfSxWqZhKkbLZjKxhyw1HunMTYE39ZpsQfp4O+JdYEIQ77dn HBhAK7YnJdrflFEmygv4gYS9QNBTo8GUBKjt6Q4WgoyBGVvSf+Dp/6Ejn+2tpqhPrero j6RVVb7cEjryKpwh1G1J2hu4/3z3ExIhuRTzg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:cc :mime-version:content-type:content-transfer-encoding:message-id; b=LdKnbOCmXqdFmiHIGqlxjxwME2WTeM7wXGVxIixTr+OwViy4MLQNpkAlsdr77BNWcD ZIvPm6cX4qZqSxFxeFqqkkNeK/nBK0EsP8n8soiuywCZuWcZudFB3iL3Zqc+8tn0iOu/ petlJFWPmb62MKzTuVMJ18p7HfdALzkwsVH+0= Received: by 10.229.206.42 with SMTP id fs42mr2121549qcb.150.1305397458027; Sat, 14 May 2011 11:24:18 -0700 (PDT) Received: from skynet.localnet (pool-108-28-47-226.washdc.fios.verizon.net [108.28.47.226]) by mx.google.com with ESMTPS id m13sm2149188qcu.28.2011.05.14.11.24.17 (version=SSLv3 cipher=OTHER); Sat, 14 May 2011 11:24:17 -0700 (PDT) From: Robert Simmons To: freebsd-questions@freebsd.org Date: Sat, 14 May 2011 14:24:14 -0400 User-Agent: KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.6.2; i686; ; ) References: <201105141438.p4EEcbTH018039@mail.r-bonomi.com> In-Reply-To: <201105141438.p4EEcbTH018039@mail.r-bonomi.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201105141424.15001.rsimmons0@gmail.com> Cc: Robert Bonomi Subject: Re: boot question 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: Sat, 14 May 2011 18:24:19 -0000 On Saturday, May 14, 2011 10:38:37 AM you wrote: > > Date: Sat, 14 May 2011 09:44:42 -0400 > > From: Robert Simmons > > To: freebsd-questions@freebsd.org > > Subject: boot question > > > > How do I boot from a kernel that is in a non-standard location on a disk > > that is partitioned with the GPT scheme? > > Things get a *LOT* messier if you want t relocate 'boot0' through 'boot4' > as well as /boot/kernel. Depending on _just_ what you want to do, you > may have to build and install custom versions of those executables. This is exactly what I want to do. I want a minimum of three partitions on the drive. One for swap, of course, but the other two I want to be: /boot / I have gotten the kernel to boot by tricking boot2 into finding boot.config by locating it at /boot/boot.config rather than /boot.config and adding the following line to boot.config: 0:ad(0,1,a)/kernel/kernel This gets me to the point where I have to enter the mount points manually at the "mountroot>" prompt. So, this is good progress. This skips the loader stage of booting, however, which I would like to not have to do. The problem is that if I put the following line in boot.config: 0:ad(0,1,a)/loader then the loader cannot find its config file "loader.conf" In boot(8) there doesn't seem to be a flag that you can pass to set where to find loader.conf. So, how can I tell it where to find loader.conf if it is in a non-standard location?