|
39 | 39 | with: |
40 | 40 | go-version: "${{ env.EXPECTED_GO_VERSION }}" |
41 | 41 |
|
42 | | - - name: Install prerequisites (AZL3) |
| 42 | + - name: Install prerequisites for VM tests (AZL3) |
43 | 43 | if: inputs.hostDistro == 'azl3' |
44 | 44 | run: | |
45 | 45 | set -eux |
|
54 | 54 | sudo systemctl restart libvirtd |
55 | 55 | sudo systemctl status libvirtd |
56 | 56 |
|
| 57 | +
|
| 58 | + - name: Install prerequisites (AZL3) |
| 59 | + if: inputs.hostDistro == 'azl3' |
| 60 | + run: | |
| 61 | + set -eux |
| 62 | +
|
| 63 | + # Install Image Customizer prerequisities. |
| 64 | + sudo tdnf install -y qemu-img rpm coreutils util-linux systemd openssl \ |
| 65 | + sed createrepo_c squashfs-tools cdrkit e2fsprogs dosfstools \ |
| 66 | + xfsprogs zstd veritysetup grub2 binutils lsof \ |
| 67 | + git azure-cli |
| 68 | +
|
| 69 | + # grub2-pc is only available on x86. |
| 70 | + if [[ "${{ inputs.hostArch }}" == "amd64" ]]; then |
| 71 | + sudo tdnf install -y grub2-pc |
| 72 | + fi |
| 73 | +
|
| 74 | + sudo tdnf list installed |
| 75 | +
|
57 | 76 | - name: Install prerequisites (Ubuntu 24.04) |
| 77 | + if: inputs.hostDistro == 'ubuntu2404' |
| 78 | + run: | |
| 79 | + set -eux |
| 80 | +
|
| 81 | + # Install Image Customizer prerequisities. |
| 82 | + sudo apt list --installed |
| 83 | + sudo apt update -y |
| 84 | +
|
| 85 | + sudo apt -y install qemu-utils rpm coreutils util-linux mount fdisk udev openssl \ |
| 86 | + sed createrepo-c squashfs-tools genisoimage e2fsprogs dosfstools \ |
| 87 | + xfsprogs zstd cryptsetup-bin grub2-common binutils lsof \ |
| 88 | +
|
| 89 | + curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
| 90 | +
|
| 91 | + - name: Install VM prerequisites for VM tests (Ubuntu 24.04) |
58 | 92 | if: inputs.hostDistro == 'ubuntu2404' |
59 | 93 | run: | |
60 | 94 | set -eux |
|
0 commit comments