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

systemd-sysusers and Fedora/RHEL #86

Open
frankcrawford opened this issue Aug 6, 2024 · 6 comments
Open

systemd-sysusers and Fedora/RHEL #86

frankcrawford opened this issue Aug 6, 2024 · 6 comments
Assignees

Comments

@frankcrawford
Copy link
Contributor

Have you given any thoughts to the changes to the RPM spec file to make use of systemd-sysusers, similar to what has been done for Debian?

It should be a pretty simple change, but I'm reluctant to push it straight into Fedora without some prior testing, so I won't use it for current version.

Also, now that RHEL7 has gone, RHEL8 and on should also support it.

@rfmoz
Copy link
Owner

rfmoz commented Aug 6, 2024

I've checked how systemd-sysusers apply on RPM and their doc said that it is available in Rpm >= 4.19 so Fedora 39 and later, RHEL 8 uses v4.14 and RHEL 9 v4.16, so none one.

As the current tuptime rpm package works fine and it's compatible with a large number of releases, maybe introducing sysusers could narrow the scope. I haven't done anything because of that, feel free to apply it, you know better what could be the impact.

On the Debian side, the .deb package will be updated on the official repos in a few weeks. I'm expected to monitor its progress (I hope everything goes smoothly).

@rfmoz rfmoz self-assigned this Aug 6, 2024
@frankcrawford
Copy link
Contributor Author

What I will do is upgrade to the new version, using the current spec file, and play around with the new systemd-sysusers format in COPR after that.

It is interesting that RPM upgrade to internally support systemd-sysusers is only in Fedora, but doing an installation similar to your installation script without using the RPM macro should work on RHEL systems.

@rfmoz
Copy link
Owner

rfmoz commented Aug 7, 2024

Ok, it seems a good approach. Please, let me know if you need any help.

@rfmoz
Copy link
Owner

rfmoz commented Aug 27, 2024

Using the attached spec file (tuptime.spec.txt), I've built and installed the package using sysusers in Fedora 40 without problem.

I followed the docu on https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/ and https://github.com/openela-main/munge/blob/el9/SPECS/munge.spec as example.

Please, could you take a look?

@frankcrawford
Copy link
Contributor Author

Thanks, I'll give it a go in the next couple of days.

@frankcrawford
Copy link
Contributor Author

On a quick look, it seems to be what I saw from some of the docs you reference, although I may need to split it into the case for EPEL vs everything else that handles the new macros.

But first, I'll test it out to make sure it works as expected, and then go to handling compatibility issues with older systems.

BTW, as EPEL7 is no longer available, I guess I really only need to worry about EPEL8 & 9, which means I may strip out some of the other tests too.

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

No branches or pull requests

2 participants