Repository navigation
image: systemd with pcre2, so journalctl --grep works - #279
Merged
Merged
Conversation
stage1 turns pcre2 off, and journalctl --grep in a workspace said "compiled without pattern matching support". journalctl dlopens libpcre2 only when asked to grep, so a boot never loads it. The build runs the journalctl it made with --grep over an empty journal directory; the image names libpcre2-8-0. acl in the build container quiets the journal install step's harmless "setfacl: not found". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The
stage1profile turns pcre2 off. Without it,journalctl --grepin a workspace fails with "compiled without pattern matching support".dlopens libpcre2 only when asked to grep (src/shared/pcre2-util.c).--grepover an empty journal directory, and requires "No entries" back.mkosi.confnameslibpcre2-8-0, as it nameslibpam-systemd, rather than trusting it to arrive with grep. It was already in the image; the image still has 217 packages, the seven systemd ones+spin1and held.aclin the build container: it quiets the journal install step'ssetfacl: not found, which is harmless (|| :insrc/journal/meson.build).Every other option stage1 turns off stays off. Their packages were not in the image before either, or they are dlopen-only libraries nothing here uses.
Checked:
task image:build,boot:lockdown,boot:logind,task lint.🤖 Generated with Claude Code