udisks only needs UDISKS_DM_TARGETS_PARAMS for UDISKS_DM_TARGETS_TYPE == "linear", and is only interested in the major/minor of the device and the offset.
So we should drop the key information for UDISKS_DM_TARGETS_TYPE == "crypt" or only explicitly set major/minor/offset, and/or not set UDISKS_DM_TARGETS_TYPE for anything != "linear".
udisks only needs UDISKS_ DM_TARGETS_ PARAMS for UDISKS_ DM_TARGETS_ TYPE == "linear", and is only interested in the major/minor of the device and the offset.
So we should drop the key information for UDISKS_ DM_TARGETS_ TYPE == "crypt" or only explicitly set major/minor/offset, and/or not set UDISKS_ DM_TARGETS_ TYPE for anything != "linear".