provision: Add support for debian bullseye.

Fixes part of #17863.
This commit is contained in:
Gaurav Pandey
2021-04-02 01:04:17 +05:30
committed by Tim Abbott
parent 9de35d98d3
commit 78524d4f87
6 changed files with 21 additions and 5 deletions

View File

@@ -425,6 +425,11 @@ def parse_os_release() -> Dict[str, str]:
continue
k, v = line.split("=", 1)
[distro_info[k]] = shlex.split(v)
if distro_info["PRETTY_NAME"] == "Debian GNU/Linux bullseye/sid":
# This hack can be removed once bullseye releases and reports
# its VERSION_ID in /etc/os-release.
distro_info["VERSION_CODENAME"] = "bullseye"
distro_info["VERSION_ID"] = "11"
return distro_info