Re: [ZFS] file in encrypted dataset disappears on first reboot

From: Taceant Omnes <taceant_at_gmail.com>
Date: Sat, 29 Jan 2022 14:35:34 UTC
On Sat, 29 Jan 2022 at 14:13, Andrea Venturoli <ml@netfence.it> wrote:

> > Any idea why that happens? Is it due to some ZFS
> > property that has a different default in FreeBSD and Linux?
>
> No idea, sorry.

There is likely a systemd unit in Linux that auto-mounts encrypted datasets.

As for BSD, the feature was implemented in rc.conf last month but will
be available only on 13.1.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256483

As I am using 13.0-release, the following addition to /etc/crontab did the job.
@reboot root  zfs mount -a -l

So all is working and I learned a bit more about zfs!
Grazie