]> sourceware.org Git - lvm2.git/commitdiff
udev: ignore private LVM devs in udev and systemd 1316155102
authorPeter Rajnoha <prajnoha@redhat.com>
Mon, 3 Jun 2024 10:07:07 +0000 (12:07 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 3 Jun 2024 13:30:05 +0000 (15:30 +0200)
We automatically ignore these devs, when lvm2 create devs,
whoever when lvm2 database is dropped or someone just
created these devs with such formated UUID, there is no
other informantion then to check DM UUID.

udev/11-dm-lvm.rules.in

index cfc022489743127dcb5d6cb0494902dc0281e30d..a6d4b956d5b3dac08b00ed620c2a1e105c377619 100644 (file)
@@ -34,6 +34,9 @@ ENV{DM_SUBSYSTEM_UDEV_FLAG0}=="1", ENV{.DM_NOSCAN}="1", ENV{DM_UDEV_DISABLE_OTHE
 
 ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}=="1", GOTO="lvm_end"
 
+# Ignore private devices - the ones having any suffix in DM_UUID. Both in udev rules and in systemd.
+ENV{DM_UUID}=="LVM-?*-?*", ENV{SYSTEMD_READY}="0", GOTO="lvm_disable"
+
 # Do not create symlinks for inappropriate subdevices.
 ENV{DM_LV_NAME}=="pvmove?*|?*_vorigin", GOTO="lvm_disable"
 ENV{DM_LV_LAYER}=="?*", GOTO="lvm_disable"
This page took 0.03719 seconds and 5 git commands to generate.