Created
December 7, 2019 13:59
-
-
Save rickardrosen/da3643fbf5d04d6121549c60e9527a53 to your computer and use it in GitHub Desktop.
Load ZFS encryption keys: /etc/systemd/system/zfs-load-key.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Load encryption keys | |
DefaultDependencies=no | |
Before=zfs-mount.service | |
After=zfs-import.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/usr/bin/bash -c '/usr/bin/zfs load-key -a' | |
[Install] | |
WantedBy=zfs-mount.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment