Bug 1094935
| Summary: | util-linux: script and/or trigger should not directly enable systemd units | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Andy Lutomirski <luto> |
| Component: | util-linux | Assignee: | Karel Zak <kzak> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | jonathan, kzak, mluscon, psimerda, sgallagh |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | util-linux-2.24.2-4.fc21 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-05-12 09:39:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1090684 | ||
|
Description
Andy Lutomirski
2014-05-06 17:23:46 UTC
Well, it's expected that uuidd is running after installation -- I have asked for FESCO exception: https://fedorahosted.org/fesco/ticket/1308 > Note that uuidd is local-only daemon that uses UNIX socket to listen to libuuid.
Wouldn't socket activation (enabled by default of course) be a suitable solution for this type of services?
It uses socket activation. Pavel: from the perspective of FESCo, socket activation is equivalent to enabling by default (since the effect is the same from an external point of view: the port is answering). That said, this restriction is on network services specifically. Since uuidd only listens on a UNIX socket to local requests, it is not required to get an explicit exception. The exception is unnecessary, uuidd it belongs to the general exception. Note that it would be nice to use any white-list with "general exception packages" in the script that scans Fedora packages. I think this bug still applies, as the services to be run default should be handled according to: https://fedoraproject.org/wiki/Features/PackagePresets AFAIK the macros already perform `systemctl preset` internally, so you shouldn't need to use `systemctl enable` but instead there should be a file in the system-presets folder. I can't find a policy though, whether the file should be installed by the package or as part of systemd or whatever. According to: # rpm -qf /usr/lib/systemd/system-preset/90-default.preset systemd-212-2.fc21.x86_64 I think you should file a bug with systemd to include uuidd.socket in the presets and then remove the `systemct enable` from the spec file. Good point (and thanks for #1095353). Using the preset will keep my script from complaining in the future. Thanks for the hints! The problem should be fixed in rawhide now. |