You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
701 B
21 lines
701 B
11 years ago
|
# Expose all (except xen-frontend) block devices via xenstore
|
||
|
|
||
|
# Only block devices are interesting
|
||
|
SUBSYSTEM!="block", GOTO="qubes_block_end"
|
||
|
|
||
|
# Skip xen-blkfront devices
|
||
|
ENV{MAJOR}=="202", GOTO="qubes_block_end"
|
||
|
|
||
|
# Skip device-mapper devices
|
||
|
ENV{MAJOR}=="253", GOTO="qubes_block_end"
|
||
|
|
||
|
IMPORT{db}="QUBES_EXPOSED"
|
||
|
ACTION=="add", IMPORT{program}="/usr/libexec/qubes/udev-block-add-change"
|
||
|
ACTION=="change", IMPORT{program}="/usr/libexec/qubes/udev-block-add-change"
|
||
|
ACTION=="remove", RUN+="/usr/libexec/qubes/udev-block-remove"
|
||
|
|
||
|
LABEL="qubes_block_end"
|
||
|
|
||
|
# Cleanup disconnected frontend from xenstore
|
||
|
ACTION=="remove", SUBSYSTEM=="block", ENV{MAJOR}=="202", RUN+="/usr/libexec/qubes/udev-block-cleanup"
|