Skip to content

Instantly share code, notes, and snippets.

@Trucido
Forked from anonymous/80-udisks2-ignore-zfs.rules
Last active April 27, 2017 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Trucido/5bea07ed3888fcf481c00ecd998c1226 to your computer and use it in GitHub Desktop.
Save Trucido/5bea07ed3888fcf481c00ecd998c1226 to your computer and use it in GitHub Desktop.
## /etc/udev/rules.d/80-udisks2-ignore-zfs.rules
# Ignore ZFS vdev filesystem type "zfs_member" with partition ID "Solaris /usr & Apple ZFS"
ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_FS_TYPE}=="zfs_member", ENV{ID_PART_ENTRY_TYPE}=="6a898cc3-1dd2-11b2-99a6-080020736631", ENV{UDISKS_IGNORE}="1"
@Trucido
Copy link
Author

Trucido commented Apr 27, 2017

forked from anonymous since I forgot to sign in. This rule was tested to instruct udisks2 to ignore zfs disks in file managers, since the sidebar becomes spammed with many duplicate entries and can't be mounted by udisks anyways.
May or may not fix the device mapper issue relating to zvols being removed or renamed without running dmsetup remove /dev/mapper/zvol/ - that may need separate rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment