mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
ef2ad30aee
This change is only about the source tree. We have tmpfiles.d/, modprobe.d/, sysctl.d/, and sysusers.d/, but for historical reasons, rules/ didn't fit this pattern. We also *install* it as rules.d/. Let's rename to be consistent.
18 lines
620 B
Plaintext
18 lines
620 B
Plaintext
# 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"
|
|
ENV{SYSTEMD_READY}=="0", 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+="@rootbindir@/udevadm trigger -s block -p ID_BTRFS_READY=0"
|
|
|
|
LABEL="btrfs_end"
|