Replies: 2 comments 2 replies
-
Decided to comment out I didn't find a way to exclude this info from getting embed in the built rpm. |
Beta Was this translation helpful? Give feedback.
-
This is a headline feature of >= 4.19: https://rpm-software-management.github.io/rpm/manual/users_and_groups.html The clue is right there:
You're not packaging the sysusers.sh script which comes with rpm 4.19, which is what that %__systemd_sysusers points to by default. Yes, commenting out the macro will disable the feature if that's what you want. The user/group provides are generated like any other automatic dependency: https://rpm-software-management.github.io/rpm/manual/dependency_generators.html |
Beta Was this translation helpful? Give feedback.
-
I'm yet to root cause this issue because this started happening today and I have no idea how or why.
I'm not adding anything like this in my systemd.spec but somehow while installing rpm is looking for sysusers.sh.
I have sysusers.sh packaged in my rpm.spec but what I don't understand is how it started showing up all of a sudden.
Link to my systemd spec
https://github.com/vmware/photon/blob/master/SPECS/systemd/systemd.spec
Link to sysusers.sh
https://github.com/vmware/photon/blob/master/SPECS/rpm/rpm.spec#L262
I'm using
rpm-4.19.1.1
I commented out
__systemd_sysusers
from /lib/rpm/macros and then update goes smooth as expected.But is there anyway to avoid embedding this info in rpm (systemd rpm in this case) during build time itself?
Please assist.
Beta Was this translation helpful? Give feedback.
All reactions