Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2007 10:06:49 +0100
From:      des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=)
To:        Barry Pederson <bp@barryp.org>
Cc:        freebsd-fs@FreeBSD.org, Pawel Jakub Dawidek <pjd@FreeBSD.org>, freebsd-geom@freebsd.org
Subject:   Re: zfs_20070303.patch on current
Message-ID:  <86ps7evniu.fsf@dwp.des.no>
In-Reply-To: <45F2EEBD.6070007@barryp.org> (Barry Pederson's message of "Sat,  10 Mar 2007 11:45:33 -0600")
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Barry Pederson <bp@barryp.org> writes:
> Is there any hope for someday optionally using ZFS as a root filesystem?

For that to be possible, both /boot/boot2 and /boot/loader need to
understand ZFS well enough to read files from it.  There isn't much
room to spare in /boot/boot2, so we'd have to have a separate version
for ZFS and teach 'disklabel -B' how to pick the right one.

> I was sort of imagining a setup where /boot resided in a UFS
> filesystem so it could hold the kernel/modules/regular booting info
> and -
> /boot/loader.conf would specify 'zfs_load=3D"YES"' along with another
> directive to tell which zfs filesystem to use as root.

Unlike Linux, where this is a common configuration, FreeBSD can't
mount a root filesystem underneath an already mounted /boot
filesystem.  Nor do we have anything resembling Linux's pivot_root
which would allow us to mount the root filesystem on top of /boot and
then switch them around.

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ps7evniu.fsf>