chroot no debian com ZFS e encriptação nativa

depois de arrancar com uma live distro do debian:

sudo -s
apt install linux-headers-$(uname -r) zfs-dkms
zpool export -a
zpool import -N -R /mnt rpool
zpool import -N -R /mnt bpool
zfs load-key -a
zfs mount rpool/ROOT/debian
zfs mount bpool/BOOT/debian
zfs mount -a

de seguida montar os sistemas de ficheiros essenciais para o chroot fazer o chroot:
for i in proc sys dev run tmp; do mount -o bind /$i /mnt/$i; done
chroot /mnt /bin/bash --login
mount -a

encriptar partição em pen

Preparation

Prepare a mount point for your data and change ownership.
# Create a mount point
sudo mkdir /media/cryptoUSB
# Set permissions for the owner
sudo chown stefan:stefan /media/cryptoUSB

Create an Encrypted Device

Encrypt the device with LUKS. Note that all data on the partition will be overwritten during this process.
# Create encrypted device
sudo cryptsetup --verify-passphrase luksFormat /dev/sdX -c aes -s 256 -h sha256

Subscrever encrypted fylesystem