Date: Tue, 13 Mar 2007 11:17:57 -0500 From: Barry Pederson <bp@barryp.org> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: freebsd-fs@FreeBSD.org, Dag-Erling Sm?rgrav <des@des.no>, freebsd-geom@freebsd.org Subject: Re: zfs_20070303.patch on current Message-ID: <45F6CEB5.7030305@barryp.org> In-Reply-To: <20070312142846.GA3747@garage.freebsd.pl> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45F6CEB5.7030305>