Open a terminal and edit “/usr/share/ubiquity/zsys-setup”:
Search for “zpool create”, and make sure you have found the create command that has “rpool” on the last line.
Before the “zpool create” insert:
echo "mypassphrase" |
In other words, pipe the passphrase to "zpool create".
Before the last line of the command insert these lines:
-O encryption=aes-256-gcm \
-O keylocation=prompt \
-O keyformat=passphrase \