summaryrefslogtreecommitdiff
path: root/fdi
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@web.de>2009-07-18 11:18:53 +0200
committerDanny Kukawka <danny.kukawka@web.de>2009-07-18 11:18:53 +0200
commit9c6f93d2d92455a06fd0c528f11e02074d6c82c4 (patch)
treea64f59ba208a8cbd3714050504583d8038b85e2e /fdi
parent368b690c5f32725077948b215ed7c9de4ac9d0a3 (diff)
hide more MBR, bootstrap and other partitions from desktop
Hide more MBR, bootstrap and other partitions from desktop. Info taken from DeviceKit-disk/udev.
Diffstat (limited to 'fdi')
-rw-r--r--fdi/policy/10osvendor/20-storage-methods.fdi23
1 files changed, 23 insertions, 0 deletions
diff --git a/fdi/policy/10osvendor/20-storage-methods.fdi b/fdi/policy/10osvendor/20-storage-methods.fdi
index 9a2223fc..1978e977 100644
--- a/fdi/policy/10osvendor/20-storage-methods.fdi
+++ b/fdi/policy/10osvendor/20-storage-methods.fdi
@@ -92,6 +92,11 @@
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
+ <match key="volume.partition.scheme" string="apm">
+ <match key="volume.partition.type" string_outof="Apple_Bootstrap">
+ <merge key="volume.ignore" type="bool">true</merge>
+ </match>
+ </match>
<!-- EFI firmware partitions -->
<match key="volume.fstype" string="vfat">
@@ -126,6 +131,24 @@
</match>
</match>
+ <!-- ignore the following MBR partition types (EFI, hidden, etc.)
+ see http://www.win.tue.nl/~aeb/partitions/partition_types-1.html
+ -->
+ <match key="volume.partition.scheme" string="mbr">
+ <match key="volume.partition.type" string_outof="0x00;0x11;0x14;0x16;0x17;0x1b;0x1c;0x1e;0x27;0x3d;0x84;0x8d;0x90;0x91;0x92;0x93;0x97;0x98;0x9a;0x9b;0xbb;0xc2;0xc3;0xdd;0xef">
+ <merge key="volume.ignore" type="bool">true</merge>
+ </match>
+ </match>
+
+ <!-- special GUID-identified partition types
+ see http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs
+ -->
+ <match key="volume.partition.scheme" string="gpt">
+ <match key="volume.partition.type" string_outof="C12A7328-F81F-11D2-BA4B-00A0C93EC93B;21686148-6449-6E6F-744E-656564454649">
+ <merge key="volume.ignore" type="bool">true</merge>
+ </match>
+ </match>
+
<append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.Volume</append>
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Mount</append>