From a3d50487ed10a77807621a8cedf99a13871080c6 Mon Sep 17 00:00:00 2001 From: Shalini Chellathurai Saroja Date: Mon, 22 Sep 2025 13:15:25 +0200 Subject: [PATCH] systemd: Suppress cpi service error message on SEL guests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On SEL guests, the default configuration does not permit the Control-Program Identifiation (CPI) data to be sent by the cpi service, resulting in a failure message in systemctl/log output on start of the cpi service. This is not a failure because it is expected behavior and the cpi service is a one-shot service whose function is already performed when the exit code is returned. Prevent the error log by filtering the associated exit code in systemd. Signed-off-by: Shalini Chellathurai Saroja Acked-by: Peter Oberparleiter Reviewed-by: Hendrik Brueckner Signed-off-by: Jan Höppner --- systemd/cpi.service.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/systemd/cpi.service.in b/systemd/cpi.service.in index ca21a8bc..24cd4430 100644 --- a/systemd/cpi.service.in +++ b/systemd/cpi.service.in @@ -43,5 +43,9 @@ EnvironmentFile=@sysconf_path@/sysconfig/cpi # Sending data to the HMC/SE ExecStart=@toolslib_path@/cpictl -e +# On SEL guests, do not send data by default and treat the respective +# return code as success. +SuccessExitStatus=NOTCONFIGURED + [Install] WantedBy=multi-user.target