feat: add terminal support for guest execution agent and enhance lifecycle management

This commit is contained in:
2026-09-25 19:51:35 +05:30
parent b0bf99a6ee
commit 3b94ac1b48
6 changed files with 250 additions and 6 deletions
+3 -1
View File
@@ -317,7 +317,9 @@ class ImageStore:
if not install:
marker = self._read_guest_file(disk, "/etc/uvm-image", files / "marker",
required=False, regular_only=True)
if marker is None or marker.path.read_text(encoding="utf-8") != "uvm-ubuntu-jammy-v4\n":
if marker is None or marker.path.read_text(encoding="utf-8") not in {
"uvm-ubuntu-jammy-v4\n", "uvm-ubuntu-jammy-v5\n",
}:
return False
descriptor, candidate = tempfile.mkstemp(prefix=".rootfs-agent-", suffix=".ext4", dir=disk.parent)
os.close(descriptor)