summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-01-18 14:19:47 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-01-30 15:59:07 +0000
commit9d2ba6fbeb9fb70a5b50e91854afc90b7d32b263 (patch)
tree44842457c702adfe3b4d6cdb98943b2e95b70818 /libexec
parentReleasing version 20221023. (diff)
downloadcompute-tools-9d2ba6fbeb9fb70a5b50e91854afc90b7d32b263.tar.xz
compute-tools-9d2ba6fbeb9fb70a5b50e91854afc90b7d32b263.zip
Tightening version matches for OS detection in container info command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/info12
1 files changed, 6 insertions, 6 deletions
diff --git a/libexec/container/info b/libexec/container/info
index 0888cc8..2345c68 100755
--- a/libexec/container/info
+++ b/libexec/container/info
@@ -143,27 +143,27 @@ esac
VERSION_BASH="$(chroot ${MACHINES}/${NAME} apt-cache policy bash | awk '/Installed: / { print $2 }')"
case "${VERSION_BASH}" in
- 4.1*)
+ 4.1-*|4.1.[0-9]*)
OS="Debian 6 (squeeze)"
;;
- 4.2*)
+ 4.2-*|4.2.[0-9]*)
OS="Debian 7 (wheezy)"
;;
- 4.3*)
+ 4.3-*|4.3.[0-9]*)
OS="Debian 8 (jessie)"
;;
- 4.4*)
+ 4.4-*|4.4.[0-9]*)
OS="Debian 9 (stretch)"
;;
- 5.0*)
+ 5.0-*|5.0.[0-9]*)
OS="Debian 10 (buster)"
;;
- 5.1*)
+ 5.1-*|5.1.[0-9]*)
OS="Debian 11 (bullseye)"
;;