Bug 1804131 - [ 40.298407] dracut-initqueue[2132]: /lib/dracut/hooks/initqueue/settled/99-nm-run.sh: line 13: basename: command not found
Summary: [ 40.298407] dracut-initqueue[2132]: /lib/dracut/hooks/initqueue/settled/99...
Keywords:
Status: CLOSED DUPLICATE of bug 1795411
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-18 09:59 UTC by Radek Vykydal
Modified: 2020-10-06 07:47 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-30 11:06:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Radek Vykydal 2020-02-18 09:59:15 UTC
Description of problem:

Basename tool from coreutils is missing in initramfs while NM requires it.

It is breaking our https://github.com/rhinstaller/kickstart-tests/blob/master/network-device-default-ksdevice-httpks.ks.in kickstart test.

Version-Release number of selected component (if applicable):

Fedora-Rawhide-20200214.n.1
dracut-049-27.git20181204.fc32.2

How reproducible:

Always

Steps to Reproduce:

1. Run pxe installation on VM with 2 network devices (eg ens3, ens11) specifying device (the "second" one, eg ens11) to be used by ksdevice boot option, for example:

append initrd=test/rv/scripted/development-rawhide/initrd.img repo=http://download.englab.brq.redhat.com/pub/fedora/development-rawhide/Everything/x86_64/os ks=http://10.43.136.2/ks/rv/ks.netdbg.cfg ksdevice=ens11

2. 
3.


Actual results:

The installation fails in dracut emergency shell

[   39.793774] dracut-initqueue[2155]: /lib/dracut/hooks/initqueue/settled/99-nm-run.sh: line 13: basename: command not found
[   40.347354] dracut-initqueue[894]: Warning: dracut-initqueue timeout - starting timeout scripts
[   40.347587] dracut-initqueue[894]: Warning: Could not boot.
         Starting Setup Virtual Console...
[  OK  ] Started Setup Virtual Console.
[   40.501106] kauditd_printk_skb: 14 callbacks suppressed
[   40.501108] audit: type=1130 audit(1582019831.298:26): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-vconsole-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   40.505402] audit: type=1131 audit(1582019831.298:27): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-vconsole-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
         Starting Dracut Emergency Shell...
[   40.541654] audit: type=1131 audit(1582019831.339:28): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=plymouth-start comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Warning: /dev/root does not exist

Generating "/run/initramfs/rdsosreport.txt"


Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.


dracut:/# 


Expected results:

The installation proceeds to stage 2 (anaconda).

Additional info:

Adding basename to initramfs manually fixes the kickstart test / installer use case.

Comment 1 Thomas Haller 2020-02-18 15:02:08 UTC
This is fixed upstream for a while:

https://github.com/dracutdevs/dracut/commit/5e0f8c8a4ced36268d0077acafa1db2402776fa6
https://github.com/dracutdevs/dracut/commit/687e17aa7f2f40d21717be9a04302c749e139d4a



Seems Rawhide should get an update of dracut...

Comment 2 Richard W.M. Jones 2020-02-28 15:14:46 UTC
Seems like there hasn't been a dracut rebase for a really long time (Dec 2018).
Will we get a fix for this bug in Rawhide any time soon?  It also breaks
NBD root.

Comment 3 todd_lewis 2020-03-16 15:13:05 UTC
This appears to be a duplicate of bug 1795411.

Comment 4 Ben Cotton 2020-08-11 13:08:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 5 David Tardon 2020-09-30 11:06:21 UTC

*** This bug has been marked as a duplicate of bug 1795411 ***


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