Skip to content

Commit b36d285

Browse files
Install AZL3 packages for QEMU platform (#3358)
Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
1 parent bbe7321 commit b36d285

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

lisa/sut_orchestrator/libvirt/transformers.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,16 @@ def install(self) -> str:
251251
packages_list = self._distro_package_mapping[type(linux).__name__]
252252
self._log.info(f"installing packages: {packages_list}")
253253
if isinstance(node.os, CBLMariner):
254-
linux.install_packages(
255-
["mariner-repos-preview.noarch", "mariner-repos-extended"]
256-
)
254+
node_info = node.get_information()
255+
distro = node_info.get("distro_version", "")
256+
if distro == "Microsoft Azure Linux 3.0":
257+
linux.install_packages(
258+
["azurelinux-repos-preview.noarch", "azurelinux-repos-extended"]
259+
)
260+
else:
261+
linux.install_packages(
262+
["mariner-repos-preview.noarch", "mariner-repos-extended"]
263+
)
257264
linux.install_packages(packages_list)
258265
username = node.tools[Whoami].get_username()
259266
node.tools[Usermod].add_user_to_group(group=username, user="qemu", sudo=True)

0 commit comments

Comments
 (0)