From deb94af61b0b4b9bb6a6d5b12bf6e22b61419e78 Mon Sep 17 00:00:00 2001 From: Liping Xu <108326363+lipxu@users.noreply.github.com> Date: Sat, 10 Jun 2023 14:19:44 +0800 Subject: [PATCH] allow docker_inram to kernel cmd list (#15374) Why I did it After docker_inram is enabled, the docker folder's default max size is 1.5G. It's not big enough for some tests which need to install additional docker images or install extra packages. Work item tracking Microsoft ADO 24199761: How I did it add docker_inram into cmdline_allowlist How to verify it sudo sh -c 'echo "docker_inram_size=3000M" >> kernel-cmdline-append' sudo reboot and check the docker folder size --- files/Aboot/boot0.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/Aboot/boot0.j2 b/files/Aboot/boot0.j2 index 58a1513cc4..3dd1442900 100644 --- a/files/Aboot/boot0.j2 +++ b/files/Aboot/boot0.j2 @@ -86,7 +86,7 @@ installer_image_path="$image_path/$installer_image" boot_config="$target_path/boot-config" -cmdline_allowlist="crashkernel hwaddr_ma1 sonic_fips" +cmdline_allowlist="crashkernel hwaddr_ma1 sonic_fips docker_inram" # for backward compatibility with the sonic_upgrade= behavior install="${install:-${sonic_upgrade:-}}"