• Ondrej Kozina's avatar
    Make LUKS2 auto-recovery aware of device signatures. · 2c1a6e3f
    Ondrej Kozina authored
    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
    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.
internal.h 7.53 KB