-
Notifications
You must be signed in to change notification settings - Fork 305
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
ConditionNeedsUpdate=
(in systemd units) will never trigger
#3069
Comments
I've just found: ostree/src/libostree/ostree-sysroot-deploy.c Line 3403 in 4451949
and on a freshly booted system:
Not sure how related: https://www.freedesktop.org/software/systemd/man/systemd-update-done.service.html The comment in the ostree code does not match the behavior described in the man page. |
So, it looks like this has already been fixed with #1631 so there is apparently nothing to do here. The logic is that systemd looks for the In #1631, we always remove those fies from new deployments so the condition always triggers: https://github.com/systemd/systemd/blob/3a9e659a0e2f30a94137fca6b6886037be72b120/src/shared/condition.c#L781 Units with To verify that, we should write a test that create that changes the configuration updated by those units (for example a sysusers config file), then create a new deploy (for example by installing a package) and then reboot and verify that the new configuration has been applied (the new user has been created). |
I've just verified manually that this is working:
Next boot:
Next boot:
|
will be triggered with new deployment See ostreedev/ostree#3069 (comment)
will be triggered with new deployment See ostreedev/ostree#3069 (comment)
will be triggered with new deployment See ostreedev/ostree#3069 (comment)
This test verifies that this is working as expected today: coreos/fedora-coreos-config#2725 |
will be triggered with new deployment See ostreedev/ostree#3069 (comment)
See original issue in coreos/fedora-coreos-tracker#1538.
Previous PRs and issues:
Describe the bug
As we keep timestamp of files at 0 (UNIX Epoch) in our ostree commits (https://ostreedev.github.io/ostree/repo/#content-objects), this condition in systemd unit will never trigger.
A quick grep on my system show the following potentially impacted services:
More investigation is needed to see if that's an issue or just a quirk.
Reproduction steps
N/A
Expected behavior
ConditionNeedsUpdate=
"works"Actual behavior
ConditionNeedsUpdate=
"doesn't work"System details
N/A
Butane or Ignition config
N/A
Additional information
See https://bugzilla.redhat.com/show_bug.cgi?id=2230187 (moved to https://issues.redhat.com/browse/RHEL-3624)
The text was updated successfully, but these errors were encountered: