Skip to content

overlay/core: write ignition issues to /run#4046

Open
jbtrystram wants to merge 2 commits into
coreos:testing-develfrom
jbtrystram:write-issues-to-run
Open

overlay/core: write ignition issues to /run#4046
jbtrystram wants to merge 2 commits into
coreos:testing-develfrom
jbtrystram:write-issues-to-run

Conversation

@jbtrystram
Copy link
Copy Markdown
Member

Since util-linux 2.41[1] agetty will source issues from multiples places by default ( /etc, /run/ and /usr/lib).

Systemd also worked around [2] this since v258 which has been in fedora 43 for a while now, so let's always write our issues to /run.

[1]
util-linux/util-linux@508fb0e
[2] systemd/systemd@864a5e9

Ref coreos/fedora-coreos-tracker#2108
See coreos/console-login-helper-messages#130

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the coreos-ignition-write-issues script to write ignition issue files to /run/issue.d instead of /etc/issue.d. This change aligns with modern agetty behavior, which now sources issue files from /run. The changes in the script are correct and the removal of the workaround symlink is appropriate. However, a related test file has not been updated, which will cause CI to fail. Please see the specific comment for details.

Comment thread overlay.d/05core/usr/libexec/coreos-ignition-write-issues
@jbtrystram jbtrystram force-pushed the write-issues-to-run branch from 34319dc to e521f1a Compare March 6, 2026 11:05
@jbtrystram
Copy link
Copy Markdown
Member Author

So this will break on all the RHCOS versions we currently build because util-linux and systemd are both too old there.
I'll add back the symlink under a rhel condition.

@jbtrystram jbtrystram force-pushed the write-issues-to-run branch 2 times, most recently from 9f96233 to c7aee76 Compare March 6, 2026 15:26
@jbtrystram
Copy link
Copy Markdown
Member Author

/retest

Comment thread overlay.d/05core/usr/libexec/coreos-ignition-write-issues Outdated
jbtrystram added a commit to jbtrystram/rhel-coreos-config that referenced this pull request Mar 24, 2026
Symlink ignition issues to /etc/issues.d
Since util-linux 2.41 agetty will source issues from /run so we moved
FCOS to write the generated issues there in [1].

Until we have util-linux >= 2.41 we need to symlink these back
to /etc/issue.d/.

[1] coreos/fedora-coreos-config#4046
@jbtrystram jbtrystram force-pushed the write-issues-to-run branch from c7aee76 to 2a7c73f Compare March 24, 2026 15:33
jbtrystram added a commit to jbtrystram/rhel-coreos-config that referenced this pull request Mar 24, 2026
Symlink ignition issues to /etc/issues.d
Since util-linux 2.41 agetty will source issues from /run so we moved
FCOS to write the generated issues there in [1].

Until we have util-linux >= 2.41 we need to symlink these back
to /etc/issue.d/.

[1] coreos/fedora-coreos-config#4046
jbtrystram added a commit to jbtrystram/rhel-coreos-config that referenced this pull request Mar 24, 2026
Symlink ignition issues to /etc/issues.d
Since util-linux 2.41 agetty will source issues from /run so we moved
FCOS to write the generated issues there in [1].

Until we have util-linux >= 2.41 we need to symlink these back
to /etc/issue.d/.

[1] coreos/fedora-coreos-config#4046
jbtrystram added a commit to jbtrystram/rhel-coreos-config that referenced this pull request Mar 24, 2026
Symlink ignition issues to /etc/issues.d
Since util-linux 2.41 agetty will source issues from /run so we moved
FCOS to write the generated issues there in [1].

Until we have util-linux >= 2.41 we need to symlink these back
to /etc/issue.d/.

[1] coreos/fedora-coreos-config#4046
jbtrystram added a commit to jbtrystram/rhel-coreos-config that referenced this pull request Mar 24, 2026
Symlink ignition issues to /etc/issues.d
Since util-linux 2.41 agetty will source issues from /run so we moved
FCOS to write the generated issues there in [1].

Until we have util-linux >= 2.41 we need to symlink these back
to /etc/issue.d/.

[1] coreos/fedora-coreos-config#4046
jbtrystram added a commit to jbtrystram/rhel-coreos-config that referenced this pull request Mar 25, 2026
Symlink ignition issues to /etc/issues.d
Since util-linux 2.41 agetty will source issues from /run so we moved
FCOS to write the generated issues there in [1].

Until we have util-linux >= 2.41 we need to symlink these back
to /etc/issue.d/.

[1] coreos/fedora-coreos-config#4046
@jbtrystram jbtrystram force-pushed the write-issues-to-run branch from 2a7c73f to d554615 Compare April 24, 2026 11:55
Since util-linux 2.41[1] agetty will source issues from multiples places
by default (`/etc/`, `/run/` and  `/usr/lib/`).

Systemd also worked around this [2] since v258 which has been in
fedora 43 for a while now, so let's always write our issues to
`/run`.

[1] util-linux/util-linux@508fb0e
[2] systemd/systemd@864a5e9

Ref coreos/fedora-coreos-tracker#2108
See coreos/console-login-helper-messages#130
In CLHM v0.22.0 we switched writing issues to `/run` instead of `/etc`
now that `util-linux` looks there by default.
Adjust the test.

Needs fedora-selinux/selinux-policy#3169
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