← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2116259] Re: dracut generated initramfs doesn't include mlx5_core module

 

** Changed in: dracut
       Status: Unknown => New

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to dracut in Ubuntu.
https://bugs.launchpad.net/bugs/2116259

Title:
  dracut generated initramfs doesn't include mlx5_core module

Status in Dracut:
  New
Status in dracut package in Ubuntu:
  Triaged

Bug description:
  A dracut generated initrd on Questing Quokka does not contain the
  mlx5_core, as a result, boot via a network based device will fail if
  our NIC uses that module.

  As an example, Oracle Cloud uses iSCSI based boot devices. On bare
  metal instances, it is very common to use the mlx5_core module. The
  same image that works well in a virtualized disk, will fail to boot in
  an iSCSI based device and drop into a shell prompt. Checking 'ip a'
  command, you can see that the only listed network interface is lo0
  (due to the missing module for the physical nic):

  sh-5.2# ip a
  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
         valid_lft forever preferred_lft forever
      inet6 ::1/128 scope host noprefixroute 
         valid_lft forever preferred_lft forever

  
  Re-generating the initrd with the following command fixes the issue:

  sudo dracut -f --regenerate-all -H --hostonly-mode=sloppy  --add-
  drivers "mlx5_core"

  As a workaround, you can create the following config file, so that you
  always include that module when generating an initrd:

  $ sudo cat /etc/dracut.conf.d/ubuntu-vfio.conf 
  add_drivers+=" mlx5_core "

  The versions being used in this instance are:

  $ sudo lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu Questing Quokka (development branch)
  Release:	25.10
  Codename:	questing

  $ sudo dpkg -l | grep dracut
  ii  dracut-core                            107-1ubuntu1                               amd64        dracut is an event driven initramfs infrastructure (core tools)
  ii  dracut-install                         107-1ubuntu1                               amd64        dracut is an event driven initramfs infrastructure (dracut-install)
  ii  dracut-network                         107-1ubuntu1                               all          dracut is an event driven initramfs infrastructure (network modules)

  $ sudo uname -a
  Linux fabio-questing-amd64-golden 6.14.0-1007-oracle #7+25.10.1-Ubuntu SMP Thu Jun 19 13:30:49 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

  
  And cmdline option being configured on grub for the iscsi boot is:

  GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0
  nvme_core.shutdown_timeout=10 crash_kexec_post_notifiers rd.luks=0
  rd.md=0 rd.dm=0 rd.net.timeout.carrier=5
  rd.iscsi.param=node.session.timeo.replacement_timeout=6000
  net.ifnames=1 ipmi_si.tryacpi=0 ipmi_si.trydmi=0
  libiscsi.debug_libiscsi_eh=1 rd.net.timeout.dhcp=10 ip=dhcp
  netroot=iscsi rd.iscsi.firmware=1"

To manage notifications about this bug go to:
https://bugs.launchpad.net/dracut/+bug/2116259/+subscriptions



References