参考这里
https://www.reddit.com/r/zfs/comments/f88sqf/zfsonroot_with_fulldisk_encryption_in_ubuntu/
关键文字
I am using encrypted rpool which gets unlocked upon boot, inspiration taken from this gist.
Don't install directly, boot into 'try ubuntu'.
In terminal, edit /usr/share/ubiquity/zsys-setup. Find line where rpool gets created and prepend the 'zpool create' command with 'echo <YOURPASSWORD> | zpool create...'
And just before the last line of zpool create command append the following:
-O recordsize=1M \
-O encryption=aes-256-gcm \
-O keylocation=prompt \
-O keyformat=passphrase \
This way, rpool is encrypted and you are asked for the password upon boot. As far as I know, boot pool cannot be encrypted at this time.
【 在 ttaudi 的大作中提到: 】
: 标 题: Re: zfs加密用什么办法比较好?
: 发信站: 水木社区 (Fri Oct 20 12:41:58 2023), 站内
:
: 我只搜到文件夹加密,等下再看看。
:
: 这两种方法那个速度快点
:
: 【 在 DreamDreams 的大作中提到: 】
: :zfs可以自己全盘加密吧
:
: - 来自 水木社区APP v3.5.7
:
: --
:
:
: ※ 来源:·
https://exp.mysmth.net·[FROM: 113.84.0.*]
--
FROM 124.207.188.194