udev: do not assume static device-mapper major number
It is not static. QubesOS/qubes-issues#1586
This commit is contained in:
parent
e23cbbc261
commit
50145d448a
@ -11,9 +11,9 @@ KERNEL=="xvda|xvdb|xvdc*|xvdd", ENV{UDISKS_IGNORE}="1"
|
|||||||
ENV{MAJOR}=="202", GOTO="qubes_block_end"
|
ENV{MAJOR}=="202", GOTO="qubes_block_end"
|
||||||
|
|
||||||
# Skip device-mapper devices
|
# Skip device-mapper devices
|
||||||
ENV{MAJOR}=="253", ENV{DM_NAME}=="snapshot-*", GOTO="qubes_block_end"
|
KERNEL=="dm-*", ENV{DM_NAME}=="snapshot-*", GOTO="qubes_block_end"
|
||||||
ENV{MAJOR}=="253", ENV{DM_NAME}=="origin-*", GOTO="qubes_block_end"
|
KERNEL=="dm-*", ENV{DM_NAME}=="origin-*", GOTO="qubes_block_end"
|
||||||
ENV{MAJOR}=="253", ENV{DM_NAME}=="", GOTO="qubes_block_end"
|
KERNEL=="dm-*", ENV{DM_NAME}=="", GOTO="qubes_block_end"
|
||||||
|
|
||||||
IMPORT{db}="QUBES_EXPOSED"
|
IMPORT{db}="QUBES_EXPOSED"
|
||||||
ACTION=="add", IMPORT{program}="/usr/lib/qubes/udev-block-add-change"
|
ACTION=="add", IMPORT{program}="/usr/lib/qubes/udev-block-add-change"
|
||||||
|
Loading…
Reference in New Issue
Block a user