systemd unit not honors /etc/default/rng-tools

Bug #1887359 reported by GGrandes
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rng-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

systemd unit service has hardcoded value for rng-device (/dev/hwrng), and dont use HRNGDEVICE or RNGDOPTIONS defined in /etc/default/rng-tools

I propose:
------ /lib/systemd/system/rng-tools.service ------
- ExecStart=/usr/sbin/rngd -r /dev/hwrng -f
+ # Read configuration variable file if it is present
+ EnvironmentFile=-/etc/default/rng-tools
+ ExecStart=/usr/sbin/rngd -f -r $HRNGDEVICE $RNGDOPTIONS
------

* Checked on ubuntu 20.04 (focal)

Tags: focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rng-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Richard Huddleston (rhuddusa) wrote :

agreed, this is a problem

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.