From be74125d40bccd0de22bfcf0d181302294c1fb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 4 Feb 2014 04:38:57 +0100 Subject: [PATCH] udev: hide internal drives from file-selection dialogs --- udev/udev-qubes-block.rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/udev/udev-qubes-block.rules b/udev/udev-qubes-block.rules index 9e989e2..19d0c1a 100644 --- a/udev/udev-qubes-block.rules +++ b/udev/udev-qubes-block.rules @@ -3,6 +3,10 @@ # Only block devices are interesting SUBSYSTEM!="block", 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" + # Skip xen-blkfront devices ENV{MAJOR}=="202", GOTO="qubes_block_end"