]> git.ipfire.org Git - thirdparty/systemd.git/commit
rules: import previous SYSTEMD_READY state for suspended DM devices and skip other...
authorMichal Sekletar <msekleta@redhat.com>
Tue, 2 Aug 2022 10:38:30 +0000 (12:38 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 19 Aug 2022 19:13:47 +0000 (20:13 +0100)
commit466266c1728e3b53b7020e4c0165c3e88576b805
tree28964921fe7e958d16d50a44b90dacf4478e67c0
parent98193c39c6d7f5cd6d79fc59ecbeca7ef96d563f
rules: import previous SYSTEMD_READY state for suspended DM devices and skip other rules

We can't get any FS meta-data from a suspended device. Hence defer
making any plugged/unplugged decisions, i.e. we just import whatever was
previous state and skip processing all other rules.

Thanks Lennart Poettering <lennart@poettering.net> for suggesting this
solution.
rules.d/99-systemd.rules.in
test/fuzz/fuzz-udev-rules/99-systemd.rules