From 6e33fee6f4a7e2041dd276995b402ca036fcab14 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 02:31:19 +0200 Subject: Adding upstream version 2:2.1.0. Signed-off-by: Daniel Baumann --- misc/11-dm-crypt.rules | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 misc/11-dm-crypt.rules (limited to 'misc/11-dm-crypt.rules') diff --git a/misc/11-dm-crypt.rules b/misc/11-dm-crypt.rules new file mode 100644 index 0000000..dfbb3a0 --- /dev/null +++ b/misc/11-dm-crypt.rules @@ -0,0 +1,17 @@ +# Old udev rules historically used in device-mapper. +# No need to install these until you have some weird configuration. +# (Code internally set the same flags.) + +ACTION!="add|change", GOTO="crypt_end" +ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="crypt_end" + +ENV{DM_UUID}=="CRYPT-TEMP-?*", GOTO="crypt_disable" +ENV{DM_UUID}!="?*", ENV{DM_NAME}=="temporary-cryptsetup-?*", GOTO="crypt_disable" +GOTO="crypt_end" + +LABEL="crypt_disable" +ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}="1" +ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1" +ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1" + +LABEL="crypt_end" -- cgit v1.2.3