summaryrefslogtreecommitdiffstats
path: root/libexec/container/info
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-01 13:43:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-01 13:43:49 +0000
commit6106da14a816f7e9608333d783bb1cb50ccea304 (patch)
tree5e335b17d0e8c9eaadeb403d5ea91822a5867933 /libexec/container/info
parentAdding upstream version 20221023. (diff)
downloadopen-infrastructure-compute-tools-6106da14a816f7e9608333d783bb1cb50ccea304.tar.xz
open-infrastructure-compute-tools-6106da14a816f7e9608333d783bb1cb50ccea304.zip
Adding upstream version 20221223.upstream/20221223
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libexec/container/info')
-rwxr-xr-xlibexec/container/info14
1 files changed, 7 insertions, 7 deletions
diff --git a/libexec/container/info b/libexec/container/info
index 0888cc8..b713e7a 100755
--- a/libexec/container/info
+++ b/libexec/container/info
@@ -143,31 +143,31 @@ 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)"
;;
- 5.2*)
+ 5.2-*|5.2.[0-9]*)
OS="Debian 12 (bookworm)"
;;