User Tools

Site Tools


zfs-encryption

Differences

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

Link to this comparison view

Next revision
Previous revision
zfs-encryption [2020/03/29 14:44]
ian created
zfs-encryption [2020/04/08 11:56] (current)
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 an updated generator method ''/lib/systemd/system-generators/zfs-mount-generator'')
  
 <code> <code>
-vi /etc/systemd/system/[email protected]+editor /etc/systemd/system/[email protected]
 </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.1585507474.txt.gz · Last modified: 2020/03/29 14:44 by ian

free spam filter