Ubuntu 20.04 includes the ability to install with ZFS for the root and boot partitions. However, it does not include an option for encrypting the root volume. Fortunately, it is easy to enable it.

Overview

The installer does not include password support for ZFS, but the installed system does have everything necessary to prompt for and handle the root volume being encrypted. This uses ZFS Native Encryption.

Steps

    -O encryption=aes-256-gcm \
    -O keylocation=prompt \
    -O keyformat=passphrase \

Acknowledgements

This is based on “a gist by Garrett Fields for 19.10”