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)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Feb 2021 13:27:49 +0000 (14:27 +0100)
commit97e535c7248cc0457395e2d62b6e7d6c342a0bd2
tree082b37eb4b763fdcc8538074972dfb094e84b727
parent16e6a7010f571851d59ce712705c4ecb7358414b
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.
src/udev/udev-builtin-btrfs.c