]> git.ipfire.org Git - thirdparty/systemd.git/blame - rules/64-btrfs.rules.in
Merge pull request #6996 from poettering/discover-block-device
[thirdparty/systemd.git] / rules / 64-btrfs.rules.in
CommitLineData
0bb91b50
KS
1# do not edit this file, it will be overwritten on update
2
3SUBSYSTEM!="block", GOTO="btrfs_end"
4ACTION=="remove", GOTO="btrfs_end"
5ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end"
6
7# let the kernel know about this btrfs filesystem, and check if it is complete
8IMPORT{builtin}="btrfs ready $devnode"
9
10# mark the device as not ready to be used by the system
11ENV{ID_BTRFS_READY}=="0", ENV{SYSTEMD_READY}="0"
12
0e8856d2 13# reconsider pending devices in case when multidevice volume awaits
d75b3183 14ENV{ID_BTRFS_READY}=="1", RUN+="@rootbindir@/udevadm trigger -s block -p ID_BTRFS_READY=0"
0e8856d2 15
0bb91b50 16LABEL="btrfs_end"