Hi,
i am trying to create initramfs with dracut for booting from network. To do it, one needs to use dracut network and nfs modules. However, the network module depends on the network-legacy one, which seems to be missing in the fedora 40 distribution.
Thanks,
Yuri
I ran into the same issue today. I don’t know how to solve it, but at least you are not alone.
root@robin-desktop:/# dracut --no-kernel --modules "base network nbd" initramfs.img
dracut[E]: No '/dev/log' or 'logger' included for syslog logging
dracut[E]: Module 'network' depends on 'network-legacy', which can't be installed
dracut[E]: Module 'network' depends on 'network-legacy', which can't be installed
dracut[E]: Module 'nbd' depends on 'network', which can't be installed
dracut[E]: Module 'network' cannot be installed.
Apparently it was removed 8 months ago: Commit - rpms/dracut - a1ebaf27b616010bc672be9409ff42b8234b008d - src.fedoraproject.org
This is unfortunate, as the nbd module seems to depend on network-legacy.
I have opened a bug report: 2321331 – network-legacy removed from dracut-network package
Hi,
It seems that if one adds the network-manager module, the network-legacy module is not needed.
Thanks,
Yuri
Hi Yuri,
I couldn’t get it working with --modules "network-manager nbd"
, it still seemed to require network-legacy. I expect I am missing something. However, as a workaround, I have now done this:
- Download dracut source, matching the version in Fedora: Releases · dracut-ng/dracut-ng · GitHub
- Extract zip file
- Copy
dracut-ng-102/modules.d/35network-legacy
to/usr/lib/dracut/modules.d/
And since Fedora has nbd
as a kernel module, --add-drivers nbd
seemed to be required as well.
Hmm … That is puzzling. I have looked into /usr/lib/dracut/modules.d/40network/module-setup.sh and it seems that network-manager should be sufficient at least for loading the network module and it did work for me. I have added the following modules:
–add ‘fips’ --add ‘pollcdrom qemu qemu-net nfs network network-manager’