dracut fails to create initramfs, "Failed to install /lib64/libnss_files*"

Bug #882282 reported by Tessa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dracut (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On a fresh install on Ubuntu 11.10, dracut fails to create a new initramfs:

dracut-update-initramfs -c -v -k `uname -r`
[...]
E: Failed to install /lib64/libnss_files*

This comes from the bottom of /usr/share/dracut/modules.d/95udev-rules/install:

if ldd $(find_binary udevd) |grep -q /lib64/; then
    dracut_install /lib64/libnss_files*
else
    dracut_install /lib/libnss_files*
fi

This check appears to be incorrect:

ldd /sbin/udevd
 linux-vdso.so.1 => (0x00007fff15bfd000)
 libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f7a8f0bd000)
 librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f7a8eeb5000)
 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7a8eb15000)
 libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7a8e911000)
 /lib64/ld-linux-x86-64.so.2 (0x00007f7a8f525000)
 libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7a8e6f4000)

The libraries it's trying to copy are in /lib/x86_64-linux-gnu/, not /lib64/. This may be a result of the new multiarch support in 110.10. The following fixes the problem in the short term, but the dracut scripts should be patched to understand multiarch:

cd /lib64/
ln -s /lib/x86_64-linux-gnu/* ./

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: dracut 005-1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Wed Oct 26 13:58:03 2011
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: dracut
UpgradeStatus: Upgraded to oneiric on 2011-10-25 (1 days ago)

Revision history for this message
Tessa (unit3) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

This has been fixed between 2011 and 2023.

Changed in dracut (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.