]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: Check for a secondary LUKS2 header.
authorMilan Broz <gmazyland@gmail.com>
Wed, 11 Jul 2018 10:34:39 +0000 (12:34 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 12:18:33 +0000 (14:18 +0200)
commit8bee1a220db8effbe5a75ba9bc68840e019ea89a
tree45d834b271af22692675018cc7265e9c2b828914
parent8a12ab57755afc36546834f175ef0b9e9376ba59
libblkid: Check for a secondary LUKS2 header.

This patch adds search for a secondary LUKS2 header,
if the primary one is corrupted.

This patch is primarily needed for wipefs that should wipe
both signatures (otherwise LUKS2 header recovery can use
secondary header and revert wipefs action).

Signed-off-by: Milan Broz <gmazyland@gmail.com>
libblkid/src/superblocks/luks.c