summaryrefslogtreecommitdiffstats
path: root/extra/hal/no-fixed-drives.fdi
diff options
context:
space:
mode:
Diffstat (limited to 'extra/hal/no-fixed-drives.fdi')
-rwxr-xr-xextra/hal/no-fixed-drives.fdi14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/hal/no-fixed-drives.fdi b/extra/hal/no-fixed-drives.fdi
new file mode 100755
index 000000000..6832ee2c5
--- /dev/null
+++ b/extra/hal/no-fixed-drives.fdi
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
+
+<!-- Don't allow HAL methods on disks that are not
+ removable or hotpluggable -->
+
+<deviceinfo version="0.2">
+<device>
+ <match key="@block.storage_device:storage.hotpluggable" bool="false">
+ <match key="@block.storage_device:storage.removable" bool="false">
+ <merge key="volume.ignore" type="bool">true</merge>
+ </match>
+ </match>
+</device>
+</deviceinfo>