From: Michael Tremer Date: Mon, 30 Mar 2020 17:24:42 +0000 (+0000) Subject: amazon-ssm-agent: Allow to overcommit memory X-Git-Tag: v2.25-core143~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c466599d059d273a1d2d3d2255a421c1a09be34;p=ipfire-2.x.git amazon-ssm-agent: Allow to overcommit memory Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/lfs/amazon-ssm-agent b/lfs/amazon-ssm-agent index d4aa3fa903..4b08bd41de 100644 --- a/lfs/amazon-ssm-agent +++ b/lfs/amazon-ssm-agent @@ -33,7 +33,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = amazon-ssm-agent -PAK_VER = 2 +PAK_VER = 3 DEPS = diff --git a/src/initscripts/packages/amazon-ssm-agent b/src/initscripts/packages/amazon-ssm-agent index c385d890ce..eeaa7b7e5c 100644 --- a/src/initscripts/packages/amazon-ssm-agent +++ b/src/initscripts/packages/amazon-ssm-agent @@ -13,6 +13,12 @@ case "${1}" in exit 0 fi + # Allow the kernel to overcommit memory. + # The SSM agent fails to clone() itself when there is + # "not enough memory" available. This simply seems to + # fail no matter how much free memory is available. + echo 1 > /proc/sys/vm/overcommit_memory + boot_mesg "Starting Amazon SSM Agent..." /usr/bin/amazon-ssm-agent &>/dev/null & evaluate_retval