Skip to content

Commit

Permalink
fix(rngd): install system service file
Browse files Browse the repository at this point in the history
as there's no reason to keep a copy; there shouldn't be any modifications.

In case there are args stored in a separate file (Fedora and alike),
it needs to be supplied too, but without the option to change the user.

(Cherry-picked commit: c47a44cb25c0892d9af6e66ee9d7cd2c3beca31f)

Resolves: #2181543
  • Loading branch information
pvalena committed Jul 25, 2023
1 parent 26c332c commit d3d382c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 8 additions & 1 deletion modules.d/06rngd/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ check() {

install() {
inst rngd
inst_simple "${moddir}/rngd.service" "${systemdsystemunitdir}/rngd.service"
inst_simple "${systemdsystemunitdir}/rngd.service"

if [ -r /etc/sysconfig/rngd ]; then
inst_simple "${moddir}/sysconfig" "/etc/sysconfig/rngd"
fi

# make sure dependant libs are installed too
inst_libdir_file opensc-pkcs11.so

systemctl -q --root "$initdir" add-wants sysinit.target rngd.service
}
7 changes: 0 additions & 7 deletions modules.d/06rngd/rngd.service

This file was deleted.

1 change: 1 addition & 0 deletions modules.d/06rngd/sysconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RNGD_ARGS="--fill-watermark=0 -x pkcs11 -x nist -x qrypt"

0 comments on commit d3d382c

Please sign in to comment.