From b48348bd779cc09f5eda9ef4f77ee08a515e85be Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Sat, 13 Jan 2024 14:39:22 +0100 Subject: [PATCH] bcm2711: cmdline.txt: enable "docker optimizations" similar to u-boot boards - most u-boot based boards get `cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1` by default (so work with docker/containerd/k8s/etc) - Gunjan pointed out that "remove swapaccount=1 - Its a deprecated parameter and causes a warning in the kernel logs" --- config/sources/families/bcm2711.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sources/families/bcm2711.conf b/config/sources/families/bcm2711.conf index e33c25f6cd..850ea7b366 100644 --- a/config/sources/families/bcm2711.conf +++ b/config/sources/families/bcm2711.conf @@ -292,7 +292,7 @@ function pre_umount_final_image__write_raspi_config() { function pre_umount_final_image__write_raspi_cmdline() { cat <<- EOD > "${MOUNT}"/boot/firmware/cmdline.txt - console=serial0,115200 console=tty1 loglevel=1 root=LABEL=${ROOT_FS_LABEL} rootfstype=${ROOTFS_TYPE} fsck.repair=yes rootwait logo.nologo + console=serial0,115200 console=tty1 loglevel=1 root=LABEL=${ROOT_FS_LABEL} rootfstype=${ROOTFS_TYPE} fsck.repair=yes rootwait logo.nologo cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory EOD if [[ "${SHOW_DEBUG}" == "yes" ]]; then