From 55944e5e40b1be2afc4855d8d2baf4b73d1876b5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:49:52 +0200 Subject: Adding upstream version 255.4. Signed-off-by: Daniel Baumann --- rules.d/64-btrfs.rules.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 rules.d/64-btrfs.rules.in (limited to 'rules.d/64-btrfs.rules.in') diff --git a/rules.d/64-btrfs.rules.in b/rules.d/64-btrfs.rules.in new file mode 100644 index 0000000..039d759 --- /dev/null +++ b/rules.d/64-btrfs.rules.in @@ -0,0 +1,17 @@ +# 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+="{{BINDIR}}/udevadm trigger -s block -p ID_BTRFS_READY=0" + +LABEL="btrfs_end" -- cgit v1.2.3