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
Last revision Both sides next revision
zfs-encryption [2020/03/29 14:48]
ian
zfs-encryption [2020/04/08 11:37]
ian
Line 21: Line 21:
  
 # zfs destroy rpool/USERDATA/ian_pxg1jp -r # zfs destroy rpool/USERDATA/ian_pxg1jp -r
- 
-# zfs inherit mountpoint rpool/home 
  
 # zfs umount rpool/home # zfs umount rpool/home
 +
 +# zfs inherit mountpoint rpool/home
  
 # zfs mount -l rpool/home # zfs mount -l rpool/home
 </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 a built-in generator method)
  
 <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.txt · Last modified: 2020/04/08 11:56 by ian

free spam filter