Commit 2c1a6e3f authored by Committed by Milan Broz
Make LUKS2 auto-recovery aware of device signatures.
auto-recovery triggers any time when only single correct LUKS2 header instance was found. That may be dangerous. We should suppress auto-recovery in case blkid decided the device is no longer LUKS device. For example if secondary (intact) LUKS2 header was left behind and blkid declares the device is LVM2 member. Moreover if at least one header instance is corrupted and blkid declares device non-empty and non-LUKS in the same time, header load operation will be aborted with error.
Showing with 64 additions and 4 deletions