|
|
1abbee |
From d77ced281c6d1f47b5dfc3abff6817d8f5756af9 Mon Sep 17 00:00:00 2001
|
|
|
0e8dd1 |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
0e8dd1 |
Date: Thu, 25 Feb 2016 15:15:04 +0100
|
|
|
0e8dd1 |
Subject: [PATCH] rules: set SYSTEMD_READY=0 on
|
|
|
0e8dd1 |
DM_UDEV_DISABLE_OTHER_RULES_FLAG=1 only with ADD event
|
|
|
0e8dd1 |
|
|
|
0e8dd1 |
The "SYSTEMD_READY=0" will cause automatic unmount
|
|
|
0e8dd1 |
of mountpoint that is on top of such DM device
|
|
|
0e8dd1 |
if this is used with multipath which sets
|
|
|
0e8dd1 |
DM_UDEV_DISABLE_OTHER_RULES_FLAG in case
|
|
|
0e8dd1 |
we have a CHANGE event thatcomes after DM multipath
|
|
|
0e8dd1 |
device reload when one of the paths is down or up.
|
|
|
0e8dd1 |
|
|
|
0e8dd1 |
See https://bugzilla.redhat.com/show_bug.cgi?id=1312011
|
|
|
0e8dd1 |
|
|
|
0e8dd1 |
Cherry-picked from: 83a3642f617975d596b5001b1699c3d16773a6e5
|
|
|
0e8dd1 |
Resolves: #1312011
|
|
|
0e8dd1 |
---
|
|
|
0e8dd1 |
rules/99-systemd.rules.in | 2 +-
|
|
|
0e8dd1 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
0e8dd1 |
|
|
|
0e8dd1 |
diff --git a/rules/99-systemd.rules.in b/rules/99-systemd.rules.in
|
|
|
0e8dd1 |
index b66d727..a4f4bf3 100644
|
|
|
0e8dd1 |
--- a/rules/99-systemd.rules.in
|
|
|
0e8dd1 |
+++ b/rules/99-systemd.rules.in
|
|
|
0e8dd1 |
@@ -12,7 +12,7 @@ SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*|xvc*|hvsi*|ttysclp*|sclp_line*|3270
|
|
|
0e8dd1 |
KERNEL=="vport*", TAG+="systemd"
|
|
|
0e8dd1 |
|
|
|
0e8dd1 |
SUBSYSTEM=="block", KERNEL!="ram*", TAG+="systemd"
|
|
|
0e8dd1 |
-SUBSYSTEM=="block", KERNEL!="ram*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"
|
|
|
0e8dd1 |
+SUBSYSTEM=="block", KERNEL!="ram*", ACTION=="add", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"
|
|
|
0e8dd1 |
|
|
|
0e8dd1 |
# Ignore encrypted devices with no identified superblock on it, since
|
|
|
0e8dd1 |
# we are probably still calling mke2fs or mkswap on it.
|