FS#64660 - [dracut] Searches for networkmanager initrd files in wrong path

Attached to Project: Arch Linux
Opened by Victor Bessonov (Unb0rn) - Tuesday, 26 November 2019, 19:31 GMT
Last edited by Toolybird (Toolybird) - Thursday, 14 September 2023, 00:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Giancarlo Razzolini (grazzolini)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When trying to build initrd image with dracut and adding a module network-manager it would fail with an error:

dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.rUz8qq/initramfs /usr/libexec/nm-initrd-generator

Other distros (Fedora, Alpine) include nm-initrd-generator and nm-dhcp-helper in /usr/libexec instead of /usr/lib and it's the dir where dracut searches it.
Looks like it's a NetworkManager's package flaw and those files should be included in /usr/libexec or should I file a bug on dracut module if we're going to do it the other way?

Additional info:
* package version(s)
1.20.8

Steps to reproduce:
- Install dracut
- Add network-manager module to dracut.conf
- Try to build an image dracut --hostonly
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 14 September 2023, 00:13 GMT
Reason for closing:  Fixed
Additional comments about closing:  dracut 055-1
Comment by Victor Bessonov (Unb0rn) - Tuesday, 26 November 2019, 19:32 GMT
Oh, the title didn't apply for some reason. Can someone please change it to something like "wrong location for initrd-related binaries"? Thanks!
Comment by Antonio Rojas (arojas) - Tuesday, 26 November 2019, 19:42 GMT
Arch doesn't use libexec, so it's dracut that needs to be patched
Comment by Victor Bessonov (Unb0rn) - Tuesday, 26 November 2019, 19:55 GMT
Should I create another bug for dracut?
Comment by Giancarlo Razzolini (grazzolini) - Tuesday, 26 November 2019, 20:17 GMT
Probably, yes. Dracut should be looking at the proper place. We shouldn't patch the Network manager package to use libexec.
Comment by Laszlo Gombos (laszlogombos) - Sunday, 09 July 2023, 19:42 GMT
Should be resolved in v054+. See https://github.com/dracutdevs/dracut/commit/22d6863ef1b2eb2a22264f2bfdb2b9329ab5dfdb .
Please retest and close.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...