kas-container: fix isar setup logic

If we run kas-container with --isar flag and did not set build_system,
we end up calling both enable_isar_mode and enable_oe_mode. This can
trigger:
  Error: keep-id is only supported in rootless mode

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Stefan Müller-Klieser 2023-03-07 09:07:08 +01:00 committed by Jan Kiszka
parent b9abbd1e63
commit 1243612a27

View File

@ -382,7 +382,7 @@ fi
if [ "${BUILD_SYSTEM}" = "isar" ]; then
enable_isar_mode
else
elif [ -z "${ISAR_MODE}" ]; then
enable_oe_mode
fi