Replacement of zlevis-fetch
#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
zlevis-fetch
script uses the following line to find the "root"-pool, while it generally works, it may be an unnecessary step as theinitramfs
already knows the relevant root-pool.zfs list -Ho name,encryption,keystatus,encryptionroot,tpm:jwe | while IFS=$'\t' read -r ds enc keystatus encroot jwe; do
Additionally,
zlevis-fetch
will not work if for some reason there are multiple pools, but in theinitramfs
this would generally be not the case, right @nils?This issue is of course related to issue #2.
The
zlevis-fetch
script has been replaced byzlevis
, particularly in theinitramfs-init
ofmkinitfs
this will result inin
prepare_zfs_root()
. Which by default uses the pool that has been deemed the root by the initramfs configuration, nullifying the earlier posed problem.