d7cfe1 cryptsetup: Do not fallback to PLAIN mapping if LUKS data device set fails.

1 file Authored by Milan Broz 4 years ago, Committed by Packit Service 4 years ago,
    cryptsetup: Do not fallback to PLAIN mapping if LUKS data device set fails.
    
    If crypt_load() for LUKS succeeds, we know that it is a LUKS device.
    Failure of data device setting should fail in this case; remapping
    as a PLAIN device late could mean data corruption.
    
    (If a user wants to map PLAIN device over a device with LUKS header,
    it should be said explicitly with "plain" argument type.)
    
    Also, if there is no explicit PLAIN type requested and crypt device
    is already initialized (crypt_data_type() is set), do not run
    the initialization again.
    
    (cherry picked from commit 2e4beb875bcb24e7d7d4339cc202b0b3f2953f71)
    
    Related: #1719153
    
    patch_name: 0204-cryptsetup-Do-not-fallback-to-PLAIN-mapping-if-LUKS-.patch
    present_in_specfile: true
    location_in_specfile: 204
    squash_commits: true
    
        
file modified
+7 -5