Skip to content

Commit f17bd39

Browse files
committed
install prereqs
1 parent deaba24 commit f17bd39

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

.github/workflows/tests-vmtests-imagecreator.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
go-version: "${{ env.EXPECTED_GO_VERSION }}"
4141

42-
- name: Install prerequisites (AZL3)
42+
- name: Install prerequisites for VM tests (AZL3)
4343
if: inputs.hostDistro == 'azl3'
4444
run: |
4545
set -eux
@@ -54,7 +54,41 @@ jobs:
5454
sudo systemctl restart libvirtd
5555
sudo systemctl status libvirtd
5656
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+
5776
- 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)
5892
if: inputs.hostDistro == 'ubuntu2404'
5993
run: |
6094
set -eux

0 commit comments

Comments
 (0)