From 368808895805a900d91476706a507cf070e1c6e6 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 19 Sep 2024 13:06:25 -0300 Subject: [PATCH] workbench deploy: detect ubuntu and guide user --- deploy-workbench.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy-workbench.sh b/deploy-workbench.sh index a914ba8..fc56408 100755 --- a/deploy-workbench.sh +++ b/deploy-workbench.sh @@ -390,6 +390,11 @@ prepare_chroot_env() { if [ -z "${VERSION_CODENAME:-}" ]; then . /etc/os-release echo "TAKING OS-RELEASE FILE" + if [ "${ID}" = "debian" ]; then + echo "ERROR: ubuntu detected, then you are enforced to specify debian variant" + echo " use for example \`VERSION_CODENAME='bookworm'\` or similar" + exit 1 + fi fi chroot_path="${ISO_PATH}/chroot"