mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-08 19:02:10 +01:00
sys-kernel/coreos-modules: switch to gzip/zstd compression
With the default gzip compression the 60 MB limit for the vmlinuz bundle of kernel+initramfs was reached. The limit comes from the size of the /boot partition which is 128 MB large and the kernel needs to fit twice, in addition to GRUB. Use zstd for the initramfs as it provides a similar speed but better compression. For the kernel we can't switch yet to zstd for arm64 but for amd64 it works.
This commit is contained in:
parent
1b068b5186
commit
29f2903c87
@ -11,6 +11,7 @@ KEYWORDS="amd64 arm64"
|
|||||||
RDEPEND="=sys-kernel/coreos-modules-${PVR}"
|
RDEPEND="=sys-kernel/coreos-modules-${PVR}"
|
||||||
DEPEND="${RDEPEND}
|
DEPEND="${RDEPEND}
|
||||||
app-arch/gzip
|
app-arch/gzip
|
||||||
|
app-arch/zstd
|
||||||
app-shells/bash
|
app-shells/bash
|
||||||
coreos-base/coreos-init:=
|
coreos-base/coreos-init:=
|
||||||
sys-apps/coreutils
|
sys-apps/coreutils
|
||||||
@ -65,6 +66,7 @@ src_prepare() {
|
|||||||
# Symlink to bootengine.cpio so we can stick with relative paths in .config
|
# Symlink to bootengine.cpio so we can stick with relative paths in .config
|
||||||
ln -sv "${ROOT}"/usr/share/bootengine/bootengine.cpio build/ || die
|
ln -sv "${ROOT}"/usr/share/bootengine/bootengine.cpio build/ || die
|
||||||
config_update 'CONFIG_INITRAMFS_SOURCE="bootengine.cpio"'
|
config_update 'CONFIG_INITRAMFS_SOURCE="bootengine.cpio"'
|
||||||
|
config_update 'CONFIG_INITRAMFS_COMPRESSION_ZSTD=y'
|
||||||
|
|
||||||
# include all intel and amd microcode files, avoiding the signatures
|
# include all intel and amd microcode files, avoiding the signatures
|
||||||
local fw_dir="${ROOT}lib/firmware"
|
local fw_dir="${ROOT}lib/firmware"
|
||||||
|
|||||||
@ -76,6 +76,7 @@ CONFIG_ISCSI_IBFT=y
|
|||||||
CONFIG_ISCSI_IBFT_FIND=y
|
CONFIG_ISCSI_IBFT_FIND=y
|
||||||
CONFIG_ITCO_VENDOR_SUPPORT=y
|
CONFIG_ITCO_VENDOR_SUPPORT=y
|
||||||
CONFIG_ITCO_WDT=m
|
CONFIG_ITCO_WDT=m
|
||||||
|
CONFIG_KERNEL_ZSTD=y
|
||||||
CONFIG_KEXEC_FILE=y
|
CONFIG_KEXEC_FILE=y
|
||||||
CONFIG_KPROBES_ON_FTRACE=y
|
CONFIG_KPROBES_ON_FTRACE=y
|
||||||
CONFIG_KVM=m
|
CONFIG_KVM=m
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user