FreeBSD Bugzilla – Attachment 225750 Details for
Bug 256483
zfs doesn't automount encrypted datasets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add knob to rc.conf to automount zfs filesystems
zfs-fix-patch-bug-256483.patch (text/plain), 1.08 KB, created by
David Schlachter
on 2021-06-11 22:26:03 UTC
(
hide
)
Description:
Patch to add knob to rc.conf to automount zfs filesystems
Filename:
MIME Type:
Creator:
David Schlachter
Created:
2021-06-11 22:26:03 UTC
Size:
1.08 KB
patch
obsolete
>diff --git a/libexec/rc/rc.d/zfs b/libexec/rc/rc.d/zfs >index 2d35f9b5464..5181fbbbb7f 100755 >--- a/libexec/rc/rc.d/zfs >+++ b/libexec/rc/rc.d/zfs >@@ -25,7 +25,11 @@ zfs_start_jail() > > zfs_start_main() > { >- zfs mount -va >+ if checkyesno "${zfs_mount_encrypted}"; then >+ zfs mount -lav >+ else >+ zfs mount -va >+ fi > zfs share -a > if [ ! -r /etc/zfs/exports ]; then > touch /etc/zfs/exports >@@ -64,4 +68,6 @@ zfs_stop() > } > > load_rc_config $name >+: ${zfs_mount_encrypted:=no} > run_rc_command "$1" >+ >diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5 >index 473406660b8..db036e20e8e 100644 >--- a/share/man/man5/rc.conf.5 >+++ b/share/man/man5/rc.conf.5 >@@ -2007,6 +2007,15 @@ If set to > .Pa /etc/rc.d/zfs > will attempt to automatically mount ZFS file systems and initialize ZFS volumes > (ZVOLs). >+.It Va zfs_mount_encrypted >+.Pq Vt bool >+If set to >+.Dq Li YES , >+.Pa /etc/rc.d/zfs >+will attempt to automatically load keys for encrypted ZFS file systems and >+will include these encrypted file systems when mounting if >+.Pa zfs_enable >+is enabled. > .It Va gptboot_enable > .Pq Vt bool > If set to
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256483
:
225750