Skip to content

Conversation

@lslezak
Copy link
Contributor

@lslezak lslezak commented Apr 28, 2025

Problem

  • The installer does not boot via PXE on ppc64le architecture
  • https://bugzilla.suse.com/show_bug.cgi?id=1241887
  • During boot this error message is printed and booting is aborted:
    dracut-pre-mount[1075]: modprobe: FATAL: Module brd not found in directory
    /usr/lib/modules/6.12.0-160000.5-default
    
  • The generated initrd does not contain the brd driver which is need by Kiwi for PXE boot
  • The build log contains this error:
    dracut[E]: FAILED:  /usr/lib/dracut/dracut-install -D  /var/tmp/dracut.ZzQ4qS/initramfs
    -N ^i2o_scsi$ --kerneldir /lib/modules/6.12.0-160000.9-default/ -m xhci_pci-renesas
    acpi_ipmi ipmi_devintf ipmi_poweroff ipmi_si ipmi_ssif ipmi_watchdog brd
    
  • Despite the error dracut reports success so the problem can be easily overlooked 😟

Solution

  • It turned out that dracut gives up at the first missing driver (acpi_ipmi) and does not add the other remaining drivers
  • The original check tested only the presence of the ipmi directory but the content can be actually different on different architectures
  • So rather explicitly check presence of each driver

Additional fix

Testing

[  314s] [ DEBUG   ]: 14:11:17 | Skipping driver acpi_ipmi, not found in the system
[  314s] [ DEBUG   ]: 14:11:17 | Adding ipmi_devintf driver to initrd...
[  314s] [ DEBUG   ]: 14:11:17 | Adding ipmi_poweroff driver to initrd...
[  314s] [ DEBUG   ]: 14:11:17 | Adding ipmi_si driver to initrd...
[  314s] [ DEBUG   ]: 14:11:17 | Adding ipmi_ssif driver to initrd...
[  314s] [ DEBUG   ]: 14:11:17 | Adding ipmi_watchdog driver to initrd...
  • All required drivers are present in the created initrd:
[  611s] dracut[D]: drwxr-xr-x   2 root     root            0 Apr 28 16:12 usr/lib/modules/6.14.2-1-default/kernel/drivers/char/ipmi
[  611s] dracut[D]: -rw-r--r--   1 root     root        29763 Apr 14 08:05 usr/lib/modules/6.14.2-1-default/kernel/drivers/char/ipmi/ipmi_devintf.ko
[  611s] dracut[D]: -rw-r--r--   1 root     root       146051 Apr 14 08:05 usr/lib/modules/6.14.2-1-default/kernel/drivers/char/ipmi/ipmi_msghandler.ko
[  611s] dracut[D]: -rw-r--r--   1 root     root        33211 Apr 14 08:05 usr/lib/modules/6.14.2-1-default/kernel/drivers/char/ipmi/ipmi_poweroff.ko
[  611s] dracut[D]: -rw-r--r--   1 root     root       178883 Apr 14 08:05 usr/lib/modules/6.14.2-1-default/kernel/drivers/char/ipmi/ipmi_si.ko
[  611s] dracut[D]: -rw-r--r--   1 root     root        77371 Apr 14 08:05 usr/lib/modules/6.14.2-1-default/kernel/drivers/char/ipmi/ipmi_ssif.ko
[  611s] dracut[D]: -rw-r--r--   1 root     root        59123 Apr 14 08:05 usr/lib/modules/6.14.2-1-default/kernel/drivers/char/ipmi/ipmi_watchdog.ko
...
[  611s] dracut[D]: -rw-r--r--   1 root     root        38395 Apr 14 08:05 usr/lib/modules/6.14.2-1-default/kernel/drivers/usb/host/xhci-pci-renesas.ko
...
[  611s] dracut[D]: -rw-r--r--   1 root     root        23387 Apr 14 08:05 usr/lib/modules/6.14.2-1-default/kernel/drivers/block/brd.ko

lslezak added 2 commits April 28, 2025 16:02
- Fixes broken installation via PXE
- Removed the workaroung for adding the xhci-pci-renesas driver,
  now it is included in the default dracut drivers
Co-authored-by: Imobach González Sosa <[email protected]>
@lslezak lslezak merged commit acf09d9 into master Apr 28, 2025
8 checks passed
@lslezak lslezak deleted the pxe_build_fix_ppc64 branch April 28, 2025 15:12
@lslezak lslezak restored the pxe_build_fix_ppc64 branch April 28, 2025 20:50
@lslezak lslezak deleted the pxe_build_fix_ppc64 branch April 28, 2025 20:50
lslezak added a commit that referenced this pull request Apr 28, 2025
- Just backporting #2300 to Beta4.

---------

Co-authored-by: Imobach González Sosa <[email protected]>
@imobachgs imobachgs mentioned this pull request May 26, 2025
imobachgs added a commit that referenced this pull request May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants