Skip to content

Commit

Permalink
udev: ignore private LVM devs in udev and systemd
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
prajnoha authored and Zdenek Kabelac committed Jun 3, 2024
1 parent fe68fb0 commit 6e6d4c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions udev/11-dm-lvm.rules.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6e6d4c6

Please sign in to comment.