From b1d8e40bfe479629056598009d1e25e87d53f544 Mon Sep 17 00:00:00 2001 From: Shalini Chellathurai Saroja Date: Tue, 7 Oct 2025 13:52:29 +0200 Subject: [PATCH] scripts/cpictl: Modify name of the exit code 6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modify the symbolic name of the exit code 6 to EXIT_NOTCONFIGURED, which is according to the Linux Standard Base (LSB) specification. Signed-off-by: Shalini Chellathurai Saroja Suggested-by: Marc Hartmayer Reviewed-by: Hendrik Brueckner Signed-off-by: Jan Höppner --- scripts/cpictl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cpictl b/scripts/cpictl index 6096a671..8eebda47 100755 --- a/scripts/cpictl +++ b/scripts/cpictl @@ -43,7 +43,7 @@ readonly EXIT_FAILURE=1 readonly EXIT_ARG_TOO_LONG=3 readonly EXIT_INVALID_CHARS=4 readonly EXIT_INVALID_ARGS=5 -readonly EXIT_NO_PERMIT_CPI=6 +readonly EXIT_NOTCONFIGURED=6 # Distro-IDs as supported by SE/HMC firmware readonly DISTRO_GENERIC=0 @@ -151,7 +151,7 @@ cpi_commit() if [[ "$PV_GUEST" -eq 1 ]]; then if [[ -z "$CPI_PERMIT" ]] || [[ "$CPI_PERMIT" -ne 1 ]]; then echo "Sending CPI data from secure execution Linux guests is disabled. Use --permit-cpi to enable CPI data." >&2 - exit "$EXIT_NO_PERMIT_CPI" + exit "$EXIT_NOTCONFIGURED" fi fi fi