From 3da9f859be8bdb1ec1dde37b0cbbb255d157cbfd Mon Sep 17 00:00:00 2001 From: Adrian Vladu Date: Wed, 6 Mar 2024 11:28:42 +0000 Subject: [PATCH] initrd_size_decrease: remove mlxsw_spectrum/mlxsw_core kernel modules This commit is part of the effort to decrease the initrd size: Partially-Fixes: https://github.com/flatcar/Flatcar/issues/1381 Signed-off-by: Adrian Vladu --- .../changes/2024-03-12-remove-mlnx-switch-asics-drivers.md | 1 + .../sys-kernel/coreos-modules/files/amd64_defconfig-6.6 | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 changelog/changes/2024-03-12-remove-mlnx-switch-asics-drivers.md diff --git a/changelog/changes/2024-03-12-remove-mlnx-switch-asics-drivers.md b/changelog/changes/2024-03-12-remove-mlnx-switch-asics-drivers.md new file mode 100644 index 0000000000..1d0ccb5639 --- /dev/null +++ b/changelog/changes/2024-03-12-remove-mlnx-switch-asics-drivers.md @@ -0,0 +1 @@ +- Removed Linux drivers for Mellanox Technologies Switch ASICs family and Spectrum/Spectrum-2/Spectrum-3/Spectrum-4 Ethernet Switch ASICs to reduce the initrd size on AMD64 by ~5MB ([flatcar/scripts#1734](https://github.com/flatcar/scripts/pull/1734)). This change is part of the effort to reduce the initrd size ([flatcar/flatcar/issues#1381](https://github.com/flatcar/Flatcar/issues/1381)). diff --git a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/amd64_defconfig-6.6 b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/amd64_defconfig-6.6 index d90915b76a..fb2516df3b 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/amd64_defconfig-6.6 +++ b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/amd64_defconfig-6.6 @@ -81,8 +81,6 @@ CONFIG_MEMORY_HOTPLUG=y CONFIG_MEMORY_HOTREMOVE=y CONFIG_MEM_SOFT_DIRTY=y CONFIG_MICROSOFT_MANA=m -CONFIG_MLXSW_CORE=m -CONFIG_MLXSW_SPECTRUM=m CONFIG_MMC_SDHCI_ACPI=m # CONFIG_MOUSE_PS2_LIFEBOOK is not set CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=1