[pull] main from bootc-dev:main#170
Merged
Merged
Conversation
…lization ostree explicitly unlinks /etc/.updated (and /var/.updated) when finalizing a new deployment so that systemd ConditionNeedsUpdate=|/etc services like systemd-sysusers and systemd-tmpfiles always run on the first boot of that deployment. The native composefs path was missing this step. initialize_state() copies /etc from the container image with 'cp -a', which preserves any /etc/.updated stamp from the build environment. composefs_backend_finalize() merges /etc into the staged deployment directory but similarly never removes the stamp. The consequence is that systemd sees /etc/.updated already present and concludes /etc needs no update, causing sysusers (and tmpfiles) to be skipped entirely on the first boot of an upgraded deployment. Assisted-by: OpenCode (Claude Sonnet 4.6) Signed-off-by: Colin Walters <walters@verbum.org>
…ysusers There's a bit of a trap in the movement from nss-altfiles to systemd-sysusers; if users/groups migrate from the former to the latter, they may leave orphaned entires in the shadow files. systemd-sysusers then tries to create those users/groups at boot it finds them already in the shadow files and fatally errors. Add a generator which enables a unit detects this situation and cleans up the shadow entries. Now in practice: we probably should have made sure that nss-altfiles users don't have shadow entries at all, but that ship has sailed. Fixes: #1179 Assisted-by: OpenCode (Claude Sonnet 4.6) Signed-off-by: Colin Walters <walters@verbum.org>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )