Support Ubuntu 22.04 (agent and server on Python 3.10)
The server only needed Python 3.11 for tomllib. Fall back to a small parser for the flat key = value subset the config uses, checked against tomllib on the shipped example. Relax the installer's version check to 3.10 and list Ubuntu 22.04 as supported for agents and server. Add status tests using uname -v / package versions captured from real 22.04.5 and 24.04.4 HWE hosts, confirming the Ubuntu build mapping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
48f2d155af
commit
16d647cf9c
7 files changed
+92
-9
No files matched your search
+2
-2
@@ -11,8 +11,8 @@ set -euo pipefail
|
||||
here=$(cd "$(dirname "$0")" && pwd)
|
||||
[[ $(id -u) == 0 ]] || { echo "run as root" >&2; exit 1; }
|
||||
|
||||
if ! /usr/bin/python3 -c 'import sys; sys.exit(sys.version_info < (3, 11))' 2>/dev/null; then
|
||||
echo "kernelwatch needs /usr/bin/python3 >= 3.11 (Debian 12+, Ubuntu 24.04)" >&2
|
||||
if ! /usr/bin/python3 -c 'import sys; sys.exit(sys.version_info < (3, 10))' 2>/dev/null; then
|
||||
echo "kernelwatch needs /usr/bin/python3 >= 3.10 (Debian 12+, Ubuntu 22.04+)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user