From f8da5bfbea067960dded17cdc469fb6376eb760a Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Mon, 4 Jul 2022 22:50:57 +1000 Subject: [PATCH] install: suggest --skip-mem-check when mem check fails In the memory check failure message, add a hint to the administrator that they can use the --skip-mem-check flag to skip the check. Related: https://pagure.io/freeipa/issue/8404 Signed-off-by: Fraser Tweedale Reviewed-By: Florence Blanc-Renaud --- ipaserver/install/installutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index b791d0943..235645e79 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -1132,7 +1132,8 @@ def check_available_memory(ca=False): if available < minimum_suggested: raise ScriptError( "Less than the minimum 1.2GB of RAM is available, " - "%.2fGB available" % (available / (1024 * 1024 * 1024)) + "%.2fGB available. Use --skip-mem-check to suppress this check." + % (available / (1024 * 1024 * 1024)) ) def load_external_cert(files, ca_subject):