Skip to content

coreos-base/coreos-init: drop daemon-reload command - #1937

Closed
tormath1 wants to merge 2 commits into
mainfrom
tormath1/sysext
Closed

tormath1 wants to merge 2 commits into
mainfrom
tormath1/sysext

Conversation

@tormath1

Copy link
Copy Markdown
Contributor

With the recent systemd upgrade we do not need to reload the systemd daemon anymore.

This pulls:


With the recent systemd upgrade we do not need to reload the systemd
daemon anymore

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>

@pothos pothos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If I read it correctly, in sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/systemd we could use After=systemd-sysext.service instead of After=ensure-sysext.service

This ensures that the Systemd daemon is reloaded once the sysext image merged.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@pothos

pothos commented Apr 18, 2024 •

Copy link
Copy Markdown
Member

Some more problems, even if the Flatcar extensions would set EXTENSION_RELOAD_MANAGER they still need to use .upholds/ symlinks instead of .wants.

ZFS: multi-user.target.wants/zfs.target → multi-user.target.upholds/zfs.target
Containerd: multi-user.target.wants/containerd.service
AWS: multi-user.target.wants/ntpd.service
Azure: multi-user.target.wants/chronyd.service
GCE: multi-user.target.wants/ntpd.service

One way is to patch WantedBy= to be UpheldBy and then the enablement with systemctl enable would work.

@github-actions

Copy link
Copy Markdown

Build action triggered: https://github.com/flatcar/scripts/actions/runs/8738383351

@tormath1

Copy link
Copy Markdown
Contributor Author

Closed in favor of: #3555

This branch had an error being deployed

1 failed deployment
development — 0ff5ec62 Deployed Apr 18, 2024 by tormath1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants