From owner-freebsd-geom@FreeBSD.ORG Tue Mar 13 16:18:01 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7282A16A402; Tue, 13 Mar 2007 16:18:01 +0000 (UTC) (envelope-from bp@barryp.org) Received: from eden.barryp.org (host-42-60-230-24.midco.net [24.230.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 396BD13C45B; Tue, 13 Mar 2007 16:18:01 +0000 (UTC) (envelope-from bp@barryp.org) Received: from geo.med.und.nodak.edu ([134.129.166.11]) by eden.barryp.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HR9hH-000PVe-4c; Tue, 13 Mar 2007 11:17:59 -0500 Message-ID: <45F6CEB5.7030305@barryp.org> Date: Tue, 13 Mar 2007 11:17:57 -0500 From: Barry Pederson User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20070120073117.GB60202@x12.dk> <200703061246.09687.antik@bsd.ee> <45ED5850.6050506@nipsi.de> <200703061420.36980.antik@bsd.ee> <20070307135017.GC2864@garage.freebsd.pl> <45F2EEBD.6070007@barryp.org> <86ps7evniu.fsf@dwp.des.no> <20070312142846.GA3747@garage.freebsd.pl> In-Reply-To: <20070312142846.GA3747@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org, Dag-Erling Sm?rgrav , freebsd-geom@freebsd.org Subject: Re: zfs_20070303.patch on current X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 16:18:01 -0000 Pawel Jakub Dawidek wrote: > > We don't have to mount /boot/ to read from it. The loader reads directly > from boot partition, so bascially we could make /dev/ad0s1a a small UFS > partition that contains the kernel, zfs kernel module and /etc/fstab > and it should work. Note that we currently allow for encrypting root > file system the same way with geli(8). From what I've been able to make out of the loader source, it seems like /etc/fstab is only read if the 'vfs.root.mountfrom' variable is not already set - so that may be one less thing to worry about. Maybe having a loader.conf with zfs_load="YES" vfs.root.mountfrom="zfs:/dev/???" although maybe you also need some environment variable to tell the zfs module to forcibly import some pool? zfs.zpool.import="tank"? After that, maybe /etc/fstab (within a ZFS filesystem), could mount /dev/ad0s1a as something like /bootpart and then have a symlink setup /boot -> /bootpart/boot so 'make installworld' would be fairly normal. Barry