diff options
Diffstat (limited to 'rules/64-btrfs.rules.in')
-rw-r--r-- | rules/64-btrfs.rules.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rules/64-btrfs.rules.in b/rules/64-btrfs.rules.in new file mode 100644 index 000000000..e10919b96 --- /dev/null +++ b/rules/64-btrfs.rules.in @@ -0,0 +1,16 @@ +# do not edit this file, it will be overwritten on update + +SUBSYSTEM!="block", GOTO="btrfs_end" +ACTION=="remove", GOTO="btrfs_end" +ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end" + +# let the kernel know about this btrfs filesystem, and check if it is complete +IMPORT{builtin}="btrfs ready $devnode" + +# mark the device as not ready to be used by the system +ENV{ID_BTRFS_READY}=="0", ENV{SYSTEMD_READY}="0" + +# reconsider pending devices in case when multidevice volume awaits +ENV{ID_BTRFS_READY}=="1", RUN+="@bindir@/udevadm trigger -s block -p ID_BTRFS_READY=0" + +LABEL="btrfs_end" |