2012-09-17 05:31:11 +08:00
|
|
|
# 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"
|
2018-02-28 17:36:06 +08:00
|
|
|
ENV{SYSTEMD_READY}=="0", GOTO="btrfs_end"
|
2012-09-17 05:31:11 +08:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2017-09-07 15:58:12 +08:00
|
|
|
# reconsider pending devices in case when multidevice volume awaits
|
2017-09-16 03:28:24 +08:00
|
|
|
ENV{ID_BTRFS_READY}=="1", RUN+="@rootbindir@/udevadm trigger -s block -p ID_BTRFS_READY=0"
|
2017-09-07 15:58:12 +08:00
|
|
|
|
2012-09-17 05:31:11 +08:00
|
|
|
LABEL="btrfs_end"
|