User Tools

Site Tools


zfs-encryption

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
zfs-encryption [2020/03/29 14:51]
ian
zfs-encryption [2020/04/08 11:56] (current)
ian
Line 29: Line 29:
 </code> </code>
  
-Now that you have an encrypted ZFS volume mounted on /home, create and enable a systemd service file to prompt for the password at boot+ 
 +---- 
 + 
 + 
 +Now that you have an encrypted ZFS volume mounted on /home, create and enable a systemd service file to prompt for the password at boot (only for **Ubuntu 19.10**, later releases have an updated generator method ''/lib/systemd/system-generators/zfs-mount-generator'')
  
 <code> <code>
Line 44: Line 48:
 Type=oneshot Type=oneshot
 RemainAfterExit=yes RemainAfterExit=yes
-ExecStart=/usr/bin/bash -c 'until (systemd-ask-password "Encrypted ZFS password for %I: " --no-tty | zfs load-key rpool/%I); do echo "Try again!"; done; zfs mount rpool/%I'+ExecStart=/usr/bin/bash -c 'until (systemd-ask-password "Encrypted ZFS password for %I: " --no-tty | zfs mount -rpool/%I); do echo "Try again!"; done'
  
 [Install] [Install]
zfs-encryption.1585507866.txt.gz · Last modified: 2020/03/29 14:51 by ian

free spam filter