diff --git a/live/src/agama-installer.changes b/live/src/agama-installer.changes index 247148c3b9..2847bfee88 100644 --- a/live/src/agama-installer.changes +++ b/live/src/agama-installer.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Apr 28 12:14:51 UTC 2025 - Ladislav Slezák + +- Fixed missing drivers in ppc64le initrd, fixes broken + installation via PXE (bsc#1241887) +- Removed the workaround for adding the xhci-pci-renesas driver, + now it is included in the default dracut drivers + ------------------------------------------------------------------- Fri Apr 25 14:10:04 UTC 2025 - Ladislav Slezák diff --git a/live/src/config.sh b/live/src/config.sh index fa76ccd53d..53896f3707 100644 --- a/live/src/config.sh +++ b/live/src/config.sh @@ -98,26 +98,17 @@ echo 'add_dracutmodules+=" dracut-menu agama-cmdline "' >>/etc/dracut.conf.d/10- # decrease the kernel logging on the console, use a dracut module to do it early in the boot process echo 'add_dracutmodules+=" agama-logging "' > /etc/dracut.conf.d/10-agama-logging.conf -# add xhci-pci-renesas to initrd if available (workaround for bsc#1237235) -# FIXME: remove when the module is included in the default driver list in -# in /usr/lib/dracut/modules.d/90kernel-modules/module-setup.sh, see -# https://github.com/openSUSE/dracut/blob/7559201e7480a65b0da050263d96a1cd8f15f50d/modules.d/90kernel-modules/module-setup.sh#L42-L46 -for file in /lib/modules/*/kernel/drivers/usb/host/xhci-pci-renesas.ko* -do - if [ -f "$file" ]; then - echo "Adding xhci-pci-renesas driver to initrd..." - echo 'add_drivers+=" xhci-pci-renesas "' >> /etc/dracut.conf.d/10-extra-drivers.conf - break - fi -done +# add the ipmi drivers to the initrd (bsc#1237354) +extra_drivers=(acpi_ipmi ipmi_devintf ipmi_poweroff ipmi_si ipmi_ssif ipmi_watchdog) -# add ipmi drivers (bsc#1237354) -for dir in /lib/modules/*/kernel/drivers/char/ipmi +for driver in "${extra_drivers[@]}" do - if [ -d "$dir" ]; then - echo "Adding ipmi drivers to initrd..." - echo 'add_drivers+=" acpi_ipmi ipmi_devintf ipmi_poweroff ipmi_si ipmi_ssif ipmi_watchdog "' >> /etc/dracut.conf.d/10-extra-drivers.conf - break + # check if the driver is present (allow a suffix like .zstd or .xz for optionally compressed drivers) + if find /lib/modules -type f -name "$driver.ko*" -print0 | grep -qz .; then + echo "Adding $driver driver to initrd..." + echo "add_drivers+=\" $driver \"" >> /etc/dracut.conf.d/10-extra-drivers.conf + else + echo "Skipping driver $driver, not found in the system" fi done