Skip to content

Commit

Permalink
Drop support for very old kernels
Browse files Browse the repository at this point in the history
All reasonable kernels have the dm/ subdirectory.
  • Loading branch information
DemiMarie committed Apr 3, 2022
1 parent 0576b7f commit d2516b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions udev/10-dm.rules.in
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ LABEL="dm_no_coldplug"
# The "suspended" item was added even later (kernels >= 2.6.31),
# so we also have to call dmsetup if the kernel version used
# is in between these releases.
TEST=="dm", ENV{DM_NAME}="$attr{dm/name}", ENV{DM_UUID}="$attr{dm/uuid}", ENV{DM_SUSPENDED}="$attr{dm/suspended}"
TEST!="dm", IMPORT{program}="(DM_EXEC)/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o name,uuid,suspended"
ENV{DM_SUSPENDED}!="?*", IMPORT{program}="(DM_EXEC)/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o suspended"
TEST!="dm", GOTO="dm_disable"
ENV{DM_NAME}="$attr{dm/name}", ENV{DM_UUID}="$attr{dm/uuid}", ENV{DM_SUSPENDED}="$attr{dm/suspended}"

# dmsetup tool provides suspended state information in textual
# form with values "Suspended"/"Active". We translate it to
Expand Down

0 comments on commit d2516b5

Please sign in to comment.