systemd: Suppress cpi service error message on SEL guests

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 <shalini@linux.ibm.com>
Acked-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Shalini Chellathurai Saroja
2025-09-22 13:15:25 +02:00
committed by Jan Höppner
parent b1d8e40bfe
commit a3d50487ed

View File

@@ -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