I'm trying to implement the following systemd service to auto load the key on boot.
I have two systems. On both systems the key lives on the ZFS-on-root rpool. The rpool is not encrypted and I'm not...
Read more
Code:
cat << 'EOF' > /etc/systemd/system/zfs-load-key@.service
[Unit]
Description=Load ZFS keys
DefaultDependencies=no
Before=zfs-mount.service
After=zfs-import.target
Requires=zfs-import.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/zfs load-key %I
[Install]
WantedBy=zfs-mount.service
EOF
I have two systems. On both systems the key lives on the ZFS-on-root rpool. The rpool is not encrypted and I'm not...
Read more