-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rootmap: handle filesystems with LUKS integrity
Systems where some filesystems were luks2-encrypted with 'integrity' option have special crypt-integrity devices: ``` NAME FSTYPE FSVER LABEL UUID vda |-vda3 crypto_LUKS 2 crypt_bootfs f55add4a-1351-4699-9e61-32f33a68a031 | `-crypt_bootfs_dif | `-crypt_bootfs ext4 1.0 boot 3d4ed0e4-40ba-4930-99ff-35d2be907ec3 |-vda4 crypto_LUKS 2 crypt_rootfs 7c5341bf-9616-4ce1-90dc-111b03379799 | `-crypt_rootfs_dif | `-crypt_rootfs xfs root d0bc5f93-f2ac-42f3-8b16-27b0794266c5 ``` So to get 'uuid' of such devices, we have to recursively go to the underlying block device. crypt-integrity devices on the other hand should be skipped during 'rdcore rootmap'. Signed-off-by: Nikita Dubrovskii <[email protected]>
- Loading branch information
1 parent
0ad0423
commit 69b706d
Showing
2 changed files
with
60 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters