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

Bug #1887359 reported by GGrandes on 2020-07-13
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rng-tools (Ubuntu)

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)

Launchpad Janitor (janitor) wrote :

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

Changed in rng-tools (Ubuntu):
status: New → Confirmed
Richard Huddleston (rhuddusa) wrote :

agreed, this is a problem

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

Other bug subscribers