]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
amazon-ssm-agent: Allow to overcommit memory
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Mar 2020 17:24:42 +0000 (17:24 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 30 Mar 2020 17:28:40 +0000 (17:28 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/amazon-ssm-agent
src/initscripts/packages/amazon-ssm-agent

index d4aa3fa90319c6117ef145d05951078a3c5d364b..4b08bd41deb98fe8942a72366a06dfd5a2bfc275 100644 (file)
@@ -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       =
 
index c385d890ce2c20d7dc6cbf540bded0534320800a..eeaa7b7e5c966bfb0001df17d330295059faa2bb 100644 (file)
@@ -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