0790aa7c85
* Also Update License tags to SPDX identifiers Resolves: RHEL-61251
50 lines
2.1 KiB
Diff
50 lines
2.1 KiB
Diff
From aeef0d56fba20f66ceec086e22d4434171bcc811 Mon Sep 17 00:00:00 2001
|
|
From: Marian Csontos <mcsontos@redhat.com>
|
|
Date: Thu, 16 May 2024 15:30:48 +0200
|
|
Subject: [PATCH 6/7] Revert "10-dm-rules: don't restore
|
|
DM_UDEV_DISABLE_OTHER_RULES_FLAG from db"
|
|
|
|
This reverts commit f98d020eadafe7d8db7bec1f5a26915615e5a6a9.
|
|
---
|
|
udev/10-dm.rules.in | 12 ++----------
|
|
1 file changed, 2 insertions(+), 10 deletions(-)
|
|
|
|
diff --git a/udev/10-dm.rules.in b/udev/10-dm.rules.in
|
|
index 29fe71527..2c6903da7 100644
|
|
--- a/udev/10-dm.rules.in
|
|
+++ b/udev/10-dm.rules.in
|
|
@@ -53,14 +53,7 @@ OPTIONS+="db_persist"
|
|
# These flags are encoded in DM_COOKIE variable that was introduced in
|
|
# kernel version 2.6.31. Therefore, we can use this feature with
|
|
# kernels >= 2.6.31 only. Cookie is not decoded for remove event.
|
|
-ENV{DM_COOKIE}!="?*", GOTO="dm_no_cookie"
|
|
-IMPORT{program}="(DM_EXEC)/dmsetup udevflags $env{DM_COOKIE}"
|
|
-
|
|
-# Store the original flag from the cookie as DM_COOKIE_DISABLE_OTHER_RULES_FLAG
|
|
-# in the udev db. DM_UDEV_DISABLE_OTHER_RULES_FLAG will be or'd with other
|
|
-# conditions for use by upper, non-dm layers.
|
|
-ENV{DM_COOKIE_DISABLE_OTHER_RULES_FLAG}="$env{DM_UDEV_DISABLE_OTHER_RULES_FLAG}"
|
|
-LABEL="dm_no_cookie"
|
|
+ENV{DM_COOKIE}=="?*", IMPORT{program}="(DM_EXEC)/dmsetup udevflags $env{DM_COOKIE}"
|
|
|
|
# There is no cookie set nor any flags encoded in events not originating
|
|
# in libdevmapper so we need to detect this and try to behave correctly.
|
|
@@ -70,13 +63,12 @@ ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", ENV{DM_ACTIVATION}="1", GOTO="dm_flags_do
|
|
IMPORT{db}="DM_UDEV_DISABLE_DM_RULES_FLAG"
|
|
IMPORT{db}="DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG"
|
|
IMPORT{db}="DM_UDEV_DISABLE_DISK_RULES_FLAG"
|
|
-IMPORT{db}="DM_COOKIE_DISABLE_OTHER_RULES_FLAG"
|
|
+IMPORT{db}="DM_UDEV_DISABLE_OTHER_RULES_FLAG"
|
|
IMPORT{db}="DM_UDEV_LOW_PRIORITY_FLAG"
|
|
IMPORT{db}="DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG"
|
|
IMPORT{db}="DM_UDEV_PRIMARY_SOURCE_FLAG"
|
|
IMPORT{db}="DM_UDEV_FLAG7"
|
|
IMPORT{db}="DM_UDEV_RULES_VSN"
|
|
-ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="$env{DM_COOKIE_DISABLE_OTHER_RULES_FLAG}"
|
|
LABEL="dm_flags_done"
|
|
|
|
# If DISK_RO is set, it's an uevent that changes the ro attribute of the device.
|
|
--
|
|
2.46.2
|
|
|