Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rauc: rauc-mark-good: disable implicit dependencies #307

Merged
merged 1 commit into from
Apr 16, 2024

Commits on Mar 16, 2024

  1. 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 <[email protected]>
    js731ca committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    767b9ce View commit details
    Browse the repository at this point in the history