Bug 2395155 - Dracut includes unrelated files (causing creation failure)
Summary: Dracut includes unrelated files (causing creation failure)
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-15 09:37 UTC by Zdenek Kabelac
Modified: 2025-10-16 14:44 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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