Bug 2395155

Summary: Dracut includes unrelated files (causing creation failure)
Product: [Fedora] Fedora Reporter: Zdenek Kabelac <zkabelac>
Component: dracutAssignee: dracut-maint-list
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dracut-maint-list, jamacku, lnykryn, pvalena
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zdenek Kabelac 2025-09-15 09:37:20 UTC
Dracut started to fail to create initramdisk image - for the reason it can't find dependency library for included library.

When I've looked more closer - it's been including these libs:

libnss_compat-2.25.90.so
libnss_nisplus-2.25.90.so
libnss_nis-2.25.90.so
libnss_nisplus.so.2

Reason of failure was:  "libnsl.so.1 => not found"
which all these libs were depending on.
Presence of these very old libs is likely some old binary sitting on my system.

But the core of this bug is -  dracut seems to be copying libs just with some pretty 'wide' regex pattern  libnss*   instead of selecting proper binaries with it's matching libraries.

Dracut makes ramdisk once these files are removed from /usr/lib64 - but
now the size is surprising:

 90784344  initramfs-0-rescue-24ded0a55465036c7dd8650047065209.img
 36332644  initramfs-5.14.0-457.el9.x86_64.img
 41997886  initramfs-5.19.17-300.fc37.x86_64.img
 99617571  initramfs-6.16.0-65.fc43.x86_64.img
100218367  initramfs-6.17.0-0.rc3.31.fc44.x86_64.img
123958036  initramfs-6.17.0-0.rc5.42.fc44.x86_64.img


makes me wondering  what else is now included in ramdisk so it's 23M bigger then rc3 version.



 



Reproducible: Always

Comment 1 Zdenek Kabelac 2025-09-15 09:46:04 UTC
So the extra files do look like some 'extra' network drivers -  kernel/drivers/net/ethernet/mellanox/*
and few others - unsure why they are included - since I've 

/etc/dracut.conf
hostonly="yes"


and I'm pretty sure there is no mellanox in my laptop.

Comment 2 Zdenek Kabelac 2025-10-16 14:44:52 UTC
Like extra files in ramdisk image are related to generic bug 13621524.