Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions udev/udev-qubes-block.rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Only block devices are interesting
SUBSYSTEM!="block", GOTO="qubes_block_end"

# Skip devices hidden from udisks by other rules
ENV{UDISKS_IGNORE}=="1", GOTO="qubes_block_end"

# Hide qubes-internal drives from udisks, so file selection dialogs
ENV{MAJOR}=="7", ENV{UDISKS_IGNORE}="1"
KERNEL=="xvda|xvdb|xvdc*|xvdd", ENV{UDISKS_IGNORE}="1"
Expand All @@ -19,6 +22,9 @@ KERNEL=="dm-*", ENV{DM_NAME}=="snapshot-*", GOTO="qubes_block_end"
KERNEL=="dm-*", ENV{DM_NAME}=="origin-*", GOTO="qubes_block_end"
KERNEL=="dm-*", ENV{DM_NAME}=="", GOTO="qubes_block_end"

# Skip zram devices
KERNEL=="zram*", GOTO="qubes_block_end"

ACTION=="add", RUN+="/usr/lib/qubes/udev-block-add-change"
ACTION=="change", RUN+="/usr/lib/qubes/udev-block-add-change"
ACTION=="remove", RUN+="/usr/lib/qubes/udev-block-remove"
Expand Down