2024-11-04 16:23:44 +00:00
|
|
|
From cccc336a97ce85cf68ec7a80390c42dae243621b Mon Sep 17 00:00:00 2001
|
2024-06-07 14:23:37 +00:00
|
|
|
From: Marian Csontos <mcsontos@redhat.com>
|
|
|
|
Date: Thu, 16 May 2024 15:30:48 +0200
|
2024-11-13 10:02:47 +00:00
|
|
|
Subject: [PATCH 06/13] Revert "10-dm-rules: don't restore
|
2024-06-07 14:23:37 +00:00
|
|
|
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.
|
|
|
|
--
|
2024-11-04 16:23:44 +00:00
|
|
|
2.47.0
|
2024-06-07 14:23:37 +00:00
|
|
|
|