Bug 2054092
| Summary: | dracut fails with module 'network-legacy' cannot be found or installed. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Lars <ggunx01> |
| Component: | dracut | Assignee: | Lukáš Nykrýn <lnykryn> |
| Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-daemons |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | CentOS Stream | CC: | bstinson, dracut-maint-list, dtardon, jamacku, jwboyer, kdudka, lnykryn |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-02-24 11:22:05 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Lars
2022-02-14 07:14:26 UTC
"dracut -v /tmp/initrd" tells me that "dracut module 'network-legacy' will not be installed, because command 'dhclient' could not be found!". That is only possible because we dropped hard dependency on dhclient from dracut-network (bug 1916174); it requires NetworkManager or dhclient now with a preference for NetworkManager. However, that change doesn't mean the package is uninstalled during update. The CentOS Stream installation I tried this on initially is relatively fresh, so it hadn't had dhclient installed in the first place (neither it did contain /etc/dracut.conf.d/50-network-legacy.conf--I created that manually). I tried to update an RHEL 8.3 installation via 8.4 and 8.5 to the latest 8.6 compose and dhclient remains installed. Conclusion: this issue seem to require a manual removal of dhclient, therefore it's not our bug. Thanks for the Explanation! Looks like we hit an special case, we removed the dhcp-client package some time ago because of an dependency issue as we don't use dhcp. 2022-01-28T21:15:08+0100 CRITICAL Error: Problem: package dhcp-client-12:4.3.6-47.el8.x86_64 requires libdns-export.so.1112()(64bit), but none of the providers can be installed - cannot install both bind-export-libs-32:9.11.36-2.el8.x86_64 and bind-export-libs-32:9.11.26-6.el8.x86_64 - cannot install both bind-export-libs-32:9.11.36-2.el8.x86_64 and bind-export-libs-32:9.11.26-3.el8.x86_64 - cannot install both bind-export-libs-32:9.11.36-2.el8.x86_64 and bind-export-libs-32:9.11.26-4.el8_4.x86_64 - cannot install the best update candidate for package dhcp-client-12:4.3.6-45.el8.x86_64 - cannot install the best update candidate for package bind-export-libs-32:9.11.26-6.el8.x86_64 After I upgraded my Covscan stage VM to RHEL-8.5, it failed to boot because there was no initrd for the last installed kernel. So I tried to reinstall the last kernel and see: # yum reinstall kernel\*-4.18.0-348.20.1.el8_5.x86_64 [...] Running scriptlet: kernel-core-4.18.0-348.20.1.el8_5.x86_64 14/14 dracut: dracut module 'network-legacy' cannot be found or installed. warning: %posttrans(kernel-core-4.18.0-348.20.1.el8_5.x86_64) scriptlet failed, exit status 1 Error in POSTTRANS scriptlet in rpm package kernel-core Is it related to this (not a) bug? How can I make the system bootable and upgradable again? As suggested by Lukas, removing /etc/dracut.conf.d/50-network-legacy.conf made the problem go away. |