5c84a0be92
Generally list loop devices in qvm-block, but exclude only those pointing at files in /var/lib/qubes (VM disk images). Fixes QubesOS/qubes-issues#3084
12 lines
893 B
Plaintext
12 lines
893 B
Plaintext
# do not edit this file, it will be overwritten on update
|
|
|
|
ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*", ATTR{loop/backing_file}=="/var/lib/qubes/*", ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1", ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}="1"
|
|
ACTION!="remove", SUBSYSTEM=="block", KERNEL=="xvd*", ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1", ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}="1"
|
|
# ENV{DM_NAME} not available yet
|
|
# Template VM disks
|
|
ACTION!="remove", SUBSYSTEM=="block", ATTR{dm/name}=="snapshot-*", ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"
|
|
ACTION!="remove", SUBSYSTEM=="block", ATTR{dm/name}=="origin-*", ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"
|
|
# kpartx used for creating empty volatile.img, udevd tries to access the device
|
|
# and prevent kpartx from removing them
|
|
ACTION!="remove", SUBSYSTEM=="block", ATTR{dm/name}=="loop*p*", ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"
|