]> git.ipfire.org Git - thirdparty/systemd.git/commit - test/fuzz/fuzz-udev-rules/systemd.rules
rules: go to the end of rules indeed when dm is suspended
authorjanana <40876700+jiayi0118@users.noreply.github.com>
Wed, 29 Nov 2023 03:36:52 +0000 (11:36 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 29 Nov 2023 08:57:55 +0000 (09:57 +0100)
commitc1a2ada89708d6aeeada496712cb24a4a58e75cc
tree53c5c5a0895b30d7fe9ef5005d2f003ea3e258d3
parent0321248b79d14ceddd36140b327332f145ae68e7
rules: go to the end of rules indeed when dm is suspended

The previous patch 466266c does not make sense indeed, that is to say, if the SYSTEMD_READY is not recorded in the database, the GOTO="systemd_end" will not be applied.

The IMPORT{db} is actually a matching token, it returns false when there is no SYSTEMD_READY recorded in the database.

The previous patch 466266c tended to inherit the state of SYSTEMD_READY from the database and skip to the end of current rule file. But when the database does not contain SYSTEMD_READY, e.g., the dm-* is not set db_persistent during initrd and the database will be cleared after switching root, the following rules will still be applied not as expected.
rules.d/99-systemd.rules.in
test/fuzz/fuzz-udev-rules/systemd.rules