summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Trefny <vtrefny@redhat.com>2021-06-02 17:17:40 +0200
committerMarian Csontos <mcsontos@redhat.com>2021-08-11 13:26:09 +0200
commit9c9a6575f0014cf73b3cf3ac1b43bda9a34448e5 (patch)
tree023d3536a2633f9fca825a5106bef0c7a808943c
parent2388284314736025b09eccedb5a8d767c851e19b (diff)
downloadlvm2-9c9a6575f0014cf73b3cf3ac1b43bda9a34448e5.tar.gz
lvmdbusd: Use ID_FS_TYPE UDev property in udevwatch
'.ID_FS_TYPE_NEW' is a custom property added by an LVM UDev rule which is now being removed and 'ID_FS_TYPE' has the same value. Signed-off-by: Vojtech Trefny <vtrefny@redhat.com> (cherry picked from commit 9421c3f38293b0fcb871e6db8f723a77b585a6ee)
-rw-r--r--daemons/lvmdbusd/udevwatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/lvmdbusd/udevwatch.py b/daemons/lvmdbusd/udevwatch.py
index b53b18003..f9b3e4ad1 100644
--- a/daemons/lvmdbusd/udevwatch.py
+++ b/daemons/lvmdbusd/udevwatch.py
@@ -52,8 +52,8 @@ def filter_event(action, device):
# when appropriate.
refresh = False
- if '.ID_FS_TYPE_NEW' in device:
- fs_type_new = device['.ID_FS_TYPE_NEW']
+ if 'ID_FS_TYPE' in device:
+ fs_type_new = device['ID_FS_TYPE']
if 'LVM' in fs_type_new:
refresh = True