Skip to content

Support systemd-confext #2108

@joelcapitao

Description

@joelcapitao

I recently moved my RaspberryPi 4 to FCOS. It was an enjoyable experience.
I managed to confine all my configuration (sysctl, rootless quadlets, etc) into a systemd-confext, which makes /etc to remain read-only.
Everything works fine except for two units:

Failed Units: 2
  console-login-helper-messages-gensnippet-ssh-keys.service
  coreos-ignition-write-issues.service

Those are not hard blockers.

These services attempt to write to /etc/issues.d to report issues, but since /etc is RO, they fail.
After some archaeology, I found out coreos/console-login-helper-messages#91 has already partially migrated the logic to write issues to/run/issue.d. However /etc/issues.d was kept to maintain compatibility with the default agetty configuration c.f: https://github.com/coreos/console-login-helper-messages/blob/70344cce1758730245cb46ca4d5bcdb56ff2f20e/usr/lib/console-login-helper-messages/issue.defs#L15-L17

Since then, the getty systemd service has been updated to source both locations:

$ systemctl cat getty@tty1.service | grep ExecStart=
ExecStart=-/sbin/agetty --noreset --noclear --issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d - ${TERM}

Therefore, I believe we can now finalize the migration to /run/issue.d.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions