Skip to content

Commit

Permalink
Install AZL3 packages for QEMU platform (#3358)
Browse files Browse the repository at this point in the history
Signed-off-by: Smit Gardhariya <[email protected]>
  • Loading branch information
smit-gardhariya authored Jul 27, 2024
1 parent bbe7321 commit b36d285
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lisa/sut_orchestrator/libvirt/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,16 @@ def install(self) -> str:
packages_list = self._distro_package_mapping[type(linux).__name__]
self._log.info(f"installing packages: {packages_list}")
if isinstance(node.os, CBLMariner):
linux.install_packages(
["mariner-repos-preview.noarch", "mariner-repos-extended"]
)
node_info = node.get_information()
distro = node_info.get("distro_version", "")
if distro == "Microsoft Azure Linux 3.0":
linux.install_packages(
["azurelinux-repos-preview.noarch", "azurelinux-repos-extended"]
)
else:
linux.install_packages(
["mariner-repos-preview.noarch", "mariner-repos-extended"]
)
linux.install_packages(packages_list)
username = node.tools[Whoami].get_username()
node.tools[Usermod].add_user_to_group(group=username, user="qemu", sudo=True)
Expand Down

0 comments on commit b36d285

Please sign in to comment.