Skip to content

Instantly share code, notes, and snippets.

@tjbenator
tjbenator / zfs-load-key@.service
Last active February 3, 2023 02:34
Mount encrypted ZFS home partition on boot.
# https://wiki.archlinux.org/title/ZFS#Unlock/Mount_at_boot_time:_systemd
[Unit]
Description=Load %I encryption keys
Before=systemd-user-sessions.service zfs-mount.service
After=zfs-import.target
Requires=zfs-import.target
DefaultDependencies=no
[Service]
Type=oneshot