Bug 1835006 - [RFE] Please install dracut module from upstream
Summary: [RFE] Please install dracut module from upstream
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: haveged
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Hladky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-12 21:39 UTC by Christian Stadelmann
Modified: 2021-01-12 22:12 UTC (History)
1 user (show)

Fixed In Version: haveged-1.9.14-2.fc33 haveged-1.9.14-2.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-12 01:30:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Christian Stadelmann 2020-05-12 21:39:15 UTC
Description of problem:
After installing haveged, I cannot add it to the initramfs because this package does not provide a dracut module


Version-Release number of selected component (if applicable):
haveged-1.9.8-2.fc32.x86_64

How reproducible:
always (due to packaging)

Steps to Reproduce:
1. Install haveged
2. Create a file in /etc/dracut.conf.d containing the line `add_dracutmodules+=" haveged"
3. regenerate initramfs using `dracut --force`

Actual results:
dracut abort and claims it did not find haveged.

Expected results:
Generate an initramfs with haveged (without throwing errors).

Additional info:
I would also be ok if haveged was included in the initramfs by default (omitting step 2).

Note:
Upstream has a dracut module: https://github.com/jirka-h/haveged/blob/master/contrib/SUSE/haveged-dracut.module
It may need to be adapted to Fedora.
Also, it should be made sure that it is being loaded before rngd to ensure that rngd sees enough entropy.

Comment 1 Jiri Hladky 2020-12-18 22:46:46 UTC
Hi Christian,

I'm sorry I have missed this BZ. I will take look at it over the Christmas holidays. 

Jirka

Comment 2 Fedora Update System 2021-01-03 01:21:12 UTC
FEDORA-2021-73342937f1 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-73342937f1

Comment 3 Jiri Hladky 2021-01-03 01:39:30 UTC
I have added dracut module and updated the package to the latest version:

haveged-1.9.14-2.fc33
haveged-1.9.14-2.fc32

Please note that haveged service is configured in such a way that it survives the switch root within initrd - see 
https://github.com/jirka-h/haveged/pull/1
for details. 

It's not added to initramfs by default - you need to 

1) Create file 
/etc/dracut.conf.d/haveged.conf
add_dracutmodules+=" haveged "

2) Create initramfs using
dracut --force

Tested with these steps:
1. Installed haveged
2. Created /etc/dracut.conf.d/haveged.conf 
$ more /etc/dracut.conf.d/haveged.conf 
add_dracutmodules+=" haveged "
3. Generate initramfs using
dracut --force
4. Checked initramfs
lsinitrd /boot/initramfs-5.9.16-200.fc33.x86_64.img | grep haveged
-rw-r--r--   1 root     root          919 Oct 23 17:30 usr/lib/systemd/system/haveged.service
-rw-r--r--   1 root     root          370 Oct 23 17:30 usr/lib/systemd/system/haveged-switch-root.service
lrwxrwxrwx   1 root     root           30 Oct 23 17:30 usr/lib/systemd/system/initrd-switch-root.target.wants/haveged-switch-root.service -> ../haveged-switch-root.service
lrwxrwxrwx   1 root     root           18 Oct 23 17:30 usr/lib/systemd/system/systemd-journald.service.wants/haveged.service -> ../haveged.service
-rwxr-xr-x   1 root     root        33392 Oct 23 17:30 usr/sbin/haveged
5. Rebooted and verified that haveged was running at initrd step


Thanks
Jirka

Comment 4 Fedora Update System 2021-01-03 01:40:22 UTC
FEDORA-2021-18b5baa33b has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-18b5baa33b

Comment 5 Fedora Update System 2021-01-04 01:54:14 UTC
FEDORA-2021-18b5baa33b has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-18b5baa33b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-18b5baa33b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-01-04 01:57:51 UTC
FEDORA-2021-73342937f1 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-73342937f1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-73342937f1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-01-12 01:30:48 UTC
FEDORA-2021-73342937f1 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2021-01-12 02:16:44 UTC
FEDORA-2021-18b5baa33b has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Christian Stadelmann 2021-01-12 22:12:10 UTC
Thank you for fixing this issue!


Note You need to log in before you can comment on or make changes to this bug.