Skip to content

sys-apps/systemd: sysupdate do not fail#4118

Draft
tormath1 wants to merge 3 commits into
mainfrom
tormath1/sysupdate
Draft

sys-apps/systemd: sysupdate do not fail#4118
tormath1 wants to merge 3 commits into
mainfrom
tormath1/sysupdate

Conversation

@tormath1

@tormath1 tormath1 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Attempt to solve: flatcar/Flatcar#1979 with an upstream approach.

TODO:

  • Submit upstream

CI: https://jenkins.flatcar.org/job/container/job/packages_all_arches/279/cldsv/

@tormath1 tormath1 self-assigned this Jun 23, 2026
Copilot AI review requested due to automatic review settings June 23, 2026 12:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Gentoo user-patch for sys-apps/systemd to prevent systemd-sysupdate invocations (e.g., via timers/services) from exiting non-zero when no transfer definitions are present, addressing Flatcar issue #1979 where the resulting failed units are considered harmless noise.

Changes:

  • Introduce a systemd patch intended to downgrade “no transfer definitions” from an error to a warning while returning success.
  • Adjust src/sysupdate/sysupdate.c behavior (via patch) for the “no transfers defined” condition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings June 23, 2026 13:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment on lines +1 to +4
From f5f1ae2462f192825c5cfd050b33d093a68d8add Mon Sep 17 00:00:00 2001
From: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Date: Tue, 23 Jun 2026 14:44:49 +0200
Subject: [PATCH] sysupdate: do not fail when no transfers are defined
Comment on lines +9 to +10
We can still warn but this should not fail (i.e return an exit code
different from zero).
Comment on lines +4 to +12
Subject: [PATCH] sysupdate: do not fail when no transfers are defined

`sysupdate` operations like 'list', 'reboot', etc. should not fail when
no transfers are defined.

We can still warn but this should not fail (i.e return an exit code
different from zero).

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
tormath1 added 2 commits June 23, 2026 18:24
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Copilot AI review requested due to automatic review settings June 24, 2026 11:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment on lines +46 to +49
+ if (!context->newest_installed || context->n_transfers) {
+ log_warning("Couldn't find any suitable installed versions.");
+ return 0;
+ }
Comment on lines +29 to +32
+ if (arg_component) {
+ log_warning("No transfer definitions for component '%s' found.", arg_component);
+ return 0;
+ }
Comment on lines +9 to +10
We can still warn but this should not fail (i.e return an exit code
different from zero).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants