Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2022 14:35:34 +0000
From:      Taceant Omnes <taceant@gmail.com>
Cc:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: [ZFS] file in encrypted dataset disappears on first reboot
Message-ID:  <CAKkGsYK8VaPaTUteDV=dF90pz-66N=-=T3k7nO3hNaB54drodA@mail.gmail.com>
In-Reply-To: <a8914518-5d44-5264-54d0-1daa53d2703f@netfence.it>
References:  <CAKkGsYKaOJGc1d%2B2iWGp78W%2BvEbk1ZbMaLzZrGaExS39=XhsMQ@mail.gmail.com> <308caf55-7fad-3b24-0f6c-3d7bb9a9ca1b@netfence.it> <CAKkGsYKgEEohNXwExCVv_n30caX-V31hejGxrsRioGREukjGEg@mail.gmail.com> <CAKkGsYKLy3hAWoi07vBWH026mNwWZYVMCJWNQJ5H5oT80VHAXQ@mail.gmail.com> <fb02a9be-31fe-f41f-cd15-7eda104b516a@netfence.it> <CAKkGsY%2B97zxSDZpSuYiRS9ewfQkk3Y_PkzxnRnohRYRawN_qXw@mail.gmail.com> <a8914518-5d44-5264-54d0-1daa53d2703f@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKkGsYK8VaPaTUteDV=dF90pz-66N=-=T3k7nO3hNaB54drodA>