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

[openSUSE] upstream defaults for systemd-presets are ignored #2178

Closed
FroggyFlox opened this issue Jun 3, 2020 · 1 comment · Fixed by #2179
Closed

[openSUSE] upstream defaults for systemd-presets are ignored #2178

FroggyFlox opened this issue Jun 3, 2020 · 1 comment · Fixed by #2179

Comments

@FroggyFlox
Copy link
Member

We currently use a dedicated systemd-presets file (https://github.com/rockstor/rockstor-core/blob/master/conf/90-default.preset) in the high priority location /etc/systemd/system-preset/ to define defaults enabled/disabled state for all systemd services.

Notably, this file ends with disable *, which sets a default disabled state for all services not defined in this file, and thus bypasses all defaults defined by upstream.

As the openSUSE wiki reads:
https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#Enabling_systemd_unit_files

systemd-presets-common-SUSE is intended for services that are mandatory for a proper function of the system or the package. Placing preset into this file means: All systems should use this value as a default. This package is a common base for both open and enterprise products and it is part of all base installations.

systemd-presets-branding-openSUSE is indented for vendor customization. Placing a preset here means: It is a wise default for openSUSE, but not enabling this service in other product makes perfect sense. The package structure makes possible to create a custom brand with a custom systemd-presets-branding-brand as a part of custom branding. Generic rules for branding packages are explained in openSUSE:Packaging_Branding.

Based on this, it would seem the recommended way would be to use our own systemd-presets-branding-rockstor package instead.

FroggyFlox added a commit to FroggyFlox/rockstor-core that referenced this issue Jun 3, 2020
Fixes rockstor#2178 by removing our custom default systemd-presets and rely on our systemd-presets-branding-rockstor package instead.
@phillxnet
Copy link
Member

@FroggyFlox Agreed. Thanks for the exposition and the reference links.
Copying in the "openSUSE:Packaging_Branding" link referenced in your quote for reference:
https://en.opensuse.org/openSUSE:Packaging_Branding

phillxnet added a commit that referenced this issue Jun 5, 2020
Delete 90-default.preset. Fixes #2178
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 a pull request may close this issue.

2 participants