- Add CONFIG parameter to %sysusers_generate_pre
@gmbr3: I don't understand what this is doing.
After expansion, this will become (from /usr/lib/rpm/macros.d/macros.sysusers):
%{_prefix}/lib/rpm/sysusers-generate-pre ${SOURCE1} system-group-audit.conf > audit.pre
Given that $SOURCE1 is already system-group-audit.conf, wouldn't this generate duplicate data in audit.pre?
Please note that this is the most exposure to sysusers stuff that I had. If this actually achieves something else that I'm missing, please elaborate.
Thanks!
It is needed for the --replace argument of systemd-sysusers (needs to know the installed filename) as shown by
--replace=/usr/lib/sysusers.d/radvd.conf
in https://www.freedesktop.org/software/systemd/man/systemd-sysusers.html#--replace=PATH
and
REPLACE_ARG="--replace=/usr/lib/sysusers.d/$1"
where $1 would become system-group-audit.conf in https://build.opensuse.org/package/view_file/Base:System/sysuser-tools/sysusers2shadow.sh?expand=1
@ematsumiya Can also be seen in https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:E/nginx/standard/x86_64
@ematsumiya: review reminder
gmbr3 created request over 2 years ago
ematsumiya accepted request over 2 years ago
ematsumiya
The Open Build Service is an openSUSE project.
@gmbr3: I don't understand what this is doing.
After expansion, this will become (from /usr/lib/rpm/macros.d/macros.sysusers):
%{_prefix}/lib/rpm/sysusers-generate-pre ${SOURCE1} system-group-audit.conf > audit.pre
Given that $SOURCE1 is already system-group-audit.conf, wouldn't this generate duplicate data in audit.pre?
Please note that this is the most exposure to sysusers stuff that I had. If this actually achieves something else that I'm missing, please elaborate.
Thanks!
It is needed for the --replace argument of systemd-sysusers (needs to know the installed filename) as shown by
--replace=/usr/lib/sysusers.d/radvd.conf
in https://www.freedesktop.org/software/systemd/man/systemd-sysusers.html#--replace=PATH
and
REPLACE_ARG="--replace=/usr/lib/sysusers.d/$1"
where $1 would become system-group-audit.conf in https://build.opensuse.org/package/view_file/Base:System/sysuser-tools/sysusers2shadow.sh?expand=1
@ematsumiya Can also be seen in https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:E/nginx/standard/x86_64
@ematsumiya: review reminder