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