From 5c84a0be9292c8913289892bb4ae2d947679143c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 12 Sep 2017 04:22:25 +0200 Subject: [PATCH] udev: don't exclude loop devices pointing outside of /var/lib/qubes 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 --- system-config/00-qubes-ignore-devices.rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system-config/00-qubes-ignore-devices.rules b/system-config/00-qubes-ignore-devices.rules index c6bc740..b60558f 100644 --- a/system-config/00-qubes-ignore-devices.rules +++ b/system-config/00-qubes-ignore-devices.rules @@ -1,6 +1,7 @@ # do not edit this file, it will be overwritten on update -ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|xvd*", ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1", ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}="1" +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"