From 4904f9f66b8763d69b083dc6822788b306e1b3fe Mon Sep 17 00:00:00 2001 From: Johannes Schneider Date: Sat, 16 Mar 2024 23:54:47 +0100 Subject: [PATCH] rauc: rauc-mark-good: disable implicit dependencies Having implicit dependencies enabled would lead to ordering cycles when enabling 'boot assessment', through systemd-boot-check-no-failures [1], which is a service that forces the multi-user.target to be reached before the boot-complete.target. The ordering cycle in this case would be: boot-complete -requires-> systemd-boot-check-no-failures systemd-boot-check-no-failures -after-> multi-user rauc-mark-good -after-> boot-complete boot-complete -after-> multi-user multi-user -after-> rauc-mark-good Which systemd would break by simply not running rauc-mark-good. The solution is to disable implicit dependencies that would otherwise add an 'After=rauc-mark-good.service' to the multi-user.target via the [Install] section. Link: https://www.freedesktop.org/software/systemd/man/latest/systemd-boot-check-no-failures.html Signed-off-by: Johannes Schneider --- recipes-core/rauc/files/rauc-mark-good.service | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-core/rauc/files/rauc-mark-good.service b/recipes-core/rauc/files/rauc-mark-good.service index 84986f95..f9d523fc 100644 --- a/recipes-core/rauc/files/rauc-mark-good.service +++ b/recipes-core/rauc/files/rauc-mark-good.service @@ -4,6 +4,7 @@ ConditionKernelCommandLine=|bootchooser.active ConditionKernelCommandLine=|rauc.slot After=boot-complete.target Requires=boot-complete.target +DefaultDependencies=no [Service] Type=oneshot