udev: when btrfs.ko is not available consider btrfs filesystems not ready
authorLennart Poettering <lennart@poettering.net>
Thu, 25 Feb 2021 14:04:25 +0000 (15:04 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Mar 2021 16:35:57 +0000 (17:35 +0100)
commit3f94149a9bdf7267453f614aa85f1735913d91a2
tree232ff2ffea814946b81d9d31b6af7b15bd48c9db
parent101273ff131a607fa47f6e58e5c3513e78df8d46
udev: when btrfs.ko is not available consider btrfs filesystems not ready

Let's add a special tweak to the btrfs builtin: if /dev/btrfs-control is
not there, let's consider all btrfs file systems as SYSTEMD_READY=0.
This is useful in initrds, where btrfs.ko might be missing. After the
initrd → host transition we can then retigger the device and undo the
SYSTEMD_READY=0 marking.

(cherry picked from commit 97e535c7248cc0457395e2d62b6e7d6c342a0bd2)
src/udev/udev-builtin-btrfs.c