SUSE Support

Here When You Need Us

Initramfs rebuild not triggered automatically when KMP is installed

This document (000020379) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 SP3

Situation

Initramfs rebuild is not triggered automatically when KMP driver modules are installed.
As a result, the initramfs does not include the newly installed drivers.

Resolution

The suse-module-tools update version 15 released July/2021 includes the fix for the problem.

Workaround:
One of the following options could be used to work around the issue:

After installing a KMP:
1. Rebuild initramfs manually using 'dracut -f'

Two ways to resolve it in the KMP itself:
2. Pass the –b option to %suse_kernel_module_package in the KMP spec file:
 %suse_kernel_module_package trace -f %{SOURCE1} -b
   This enforces an initrd rebuild.
3. Use xz compression in the KMP, for example: find $RPM_BUILD_ROOT/lib/modules -name '*.ko' | xargs xz

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020379
  • Creation Date: 10-Sep-2021
  • Modified Date:10-Sep-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.