Skip to content
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

Simplify systemd configuration for console-conf #2071

Conversation

valentindavid
Copy link
Contributor

This is a backport of #1478 to core/jammy branch.

Having [email protected] and [email protected] starting each others seem to generate errors on shut down.

[  115.522870] systemctl[1011]: Got message type=error sender=org.freedesktop.systemd1 destination=n/a path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=org.freedesktop.systemd1.TransactionIsDestructive error-message=Transaction for [email protected]/star
[  115.524325] systemctl[1011]: t is destructive (systemd-poweroff.service has 'start' job queued, but 'stop' is included in transaction).
[  115.525067] systemctl[1011]: Failed to start [email protected]: Transaction for [email protected]/start is destructive (systemd-poweroff.service has 'start' job queued, but 'stop' is included in transaction).

Instead we should just have both console-conf@ and getty@ enabled and select with conditions.

Serial port services are enabled by a generator, in a similar way as systemd-getty-generator for serial-getty@.

Having `[email protected]` and `[email protected]` starting each others
seem to generate errors on shut down.

```
[  115.522870] systemctl[1011]: Got message type=error sender=org.freedesktop.systemd1 destination=n/a path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=org.freedesktop.systemd1.TransactionIsDestructive error-message=Transaction for [email protected]/star
[  115.524325] systemctl[1011]: t is destructive (systemd-poweroff.service has 'start' job queued, but 'stop' is included in transaction).
[  115.525067] systemctl[1011]: Failed to start [email protected]: Transaction for [email protected]/start is destructive (systemd-poweroff.service has 'start' job queued, but 'stop' is included in transaction).
```

Instead we should just have both `console-conf@` and `getty@` enabled
and select with conditions.

Serial port services are enabled by a generator, in a similar way as
`systemd-getty-generator` for `serial-getty@`.
@dbungert dbungert merged commit 639b5ec into canonical:core/jammy Aug 29, 2024
1 of 5 checks passed
alfonsosanchezbeato added a commit to alfonsosanchezbeato/core-base that referenced this pull request Sep 3, 2024
alfonsosanchezbeato added a commit to canonical/core-base that referenced this pull request Oct 15, 2024
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