Debian: Add Mellanox drivers to the initramfs

This commit includes the Mellanox OFED device drivers in the initramfs.
This is necessary for systems that have Mellanox network adapters as
their management interfaces.

Please note that the mlnx-ofed-kernel-modules Debian package includes a
number of source files in /usr/src/ofa_kernel/x86_64 as well, so this
commit will unfortunately increase the size of the initramfs more than
necessary until the Debian packaging for the Mellanox OFED drivers is
improved.

Verification:
- An ISO image was successfully built with this commit.
- The /initrd file in the ISO image was unpacked and the existence of
  the Mellanox OFED device drivers in the initial RAM file system image
  was confirmed.
- The ISO image was started up in a qemu/KVM-based virtual machine and a
  root shell was acquired in the initramfs by appending "instsh=1" to
  the kernel command line. In the root shell, it was confirmed that the
  mlx5_core kernel module can be loaded with "modprobe mlx5_core".
- To confirm that this commit is necessary, an ISO image built without
  this commit was acquired from a nightly build server, and it was noted
  that the mlx5_core kernel module cannot be loaded in the initramfs
  environment using the procedure in the previous step.

Story: 2009878
Task: 45213

Change-Id: I30349d7eef7fc16c55d88064df576536d2864206
Signed-off-by: M. Vefa Bicakci <vefa.bicakci@windriver.com>
This commit is contained in:
M. Vefa Bicakci 2022-04-18 19:45:53 +00:00
parent 7fc0c4eb1e
commit 9223c8f960
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ packages:
- libostree-1-1=2019.1-1
- linux-image-5.10.0-6-amd64-unsigned
- mdadm
- mlnx-ofed-kernel-modules
- mount
- mttyexec
- ostree-boot=2019.1-1