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

Templates should setup "systemd-preset" (issue: Fedora 37 templates disable systemd-networkd on first boot) #52

Open
Blub opened this issue Nov 18, 2022 · 0 comments

Comments

@Blub
Copy link
Member

Blub commented Nov 18, 2022

Currently the template scripts manually create symlinks to enable/disable systemd services.

For instance, the fedora template script explicitly enables systemd-networkd, but systemd reverts back to the 'preset' state whenever there's no /etc/machine-id file at boot time, where fedora now explicitly disables systemd-networkd in favor of NetworkManager.
This is done via /usr/lib/systemd/system-preset/90-default.preset.

The template should probably additionally also ship a preset (eg. /etc/systemd/system-preset/00-lxc.preset or something) containin the enable systemd-networkd.service line (and potentially others that get enabled).

While this behavior is somewhat awkward, it'll probably also be "safer" as eg. systemd-networkd.service contains an Alias= and a few Also= lines by now which aren't taken into account in the template scripts either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant