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

bootupctl: Clear failure status from previous runs #715

Merged
merged 1 commit into from
Sep 3, 2024

Commits on Sep 2, 2024

  1. bootupctl: Clear failure status from previous runs

    If for whatever reason a bootupd command fails, it will leave the
    systemd service unit in a failed state and systemd will then refuse to
    run a unit under the same name with `systemd-run` again until the
    failure is cleared.
    
    Thus systematically call `systemctl reset-failed` before calling
    `systemd-run` to clear any potential failures from previous calls.
    
    Do not check the return code of the systemctl command on purpose as it
    may fail if the unit does not exists yet, i.e. if no bootupctl command
    has been run yet.
    
    Also ignore stdout/stderr to avoid showing unexpected errors messages to
    users.
    
    See: coreos#707
    See: coreos#663
    travier committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    6fcc010 View commit details
    Browse the repository at this point in the history