Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jul 2011 22:23:36 +0400
From:      Pan Tsu <inyaoo@gmail.com>
To:        "Christopher J. Ruwe" <cjr@cruwe.de>
Cc:        freebsd-fs@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: zpool-zfs'es on a GELI-encrypted volume are not mounted at boot [patch included]
Message-ID:  <86tyauc7vb.fsf@gmail.com>
In-Reply-To: <20110710172012.51fce47c@dijkstra> (Christopher J. Ruwe's message of "Sun, 10 Jul 2011 17:20:12 %2B0200")
References:  <20110710142617.1d80289b@dijkstra> <86mxgmjooc.fsf@gmail.com> <20110710160504.0d4bf4c0@dijkstra> <20110710145044.GA94832@icarus.home.lan> <20110710172012.51fce47c@dijkstra>

next in thread | previous in thread | raw e-mail | index | archive | help
"Christopher J. Ruwe" <cjr@cruwe.de> writes:

[...]
> /etc/rc.d/zvol
> /etc/rc.d/zfs
> /etc/rc.d/dumpon
> /etc/rc.d/ddb
> /etc/rc.d/initrandom
> /etc/rc.d/geli
> /etc/rc.d/gbde
> /etc/rc.d/encswap
> /etc/rc.d/ccd
> /etc/rc.d/swap1
> /etc/rc.d/fsck
> /etc/rc.d/root
> /etc/rc.d/hostid_save
> /etc/rc.d/mdconfig
> /etc/rc.d/mountcritlocal
>
> This makes sense to me and reflects the order I assumed in my
> description. The question remains, however, if my configuration is of
> any in {unusual, ..., stupid} as I require first zfs mount of /, then
> GELI-unlock and then zfs mount of {/usr,/usr/local, ...}.

Do you mount the root pool over smth else? Otherwise, root should be
mounted by kernel before init(8) is started. And /etc/rc.d doesn't exist
before root is mounted.

I think the correct order is

  0 vfs_mountroot*
  ..
  2 rc.d/zvol (pre v28)
  ..
  6 rc.d/geli
  ..
  15 rc.d/mountcritlocal
  16 rc.d/zfs

where extra datasets from the root pool can be mounted via fstab at
rc.d/mountcritlocal time. Not sure if you import geli pool during boot
or not and leak its configuration via zpool.cache.

>
> Anyhow, thanks for setting me up on the proper usage of rcorder.



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