Skip to content

Commit 92665cd

Browse files
redbeampraveenkumar
authored andcommitted
createdisk.sh: enable fedora-updates repo for qemu-user-static-x86
Issue #967
1 parent c6067d1 commit 92665cd

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

createdisk.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,21 @@ EOF
124124
fi
125125

126126
if [ "${ARCH}" == "aarch64" ] && [ ${BUNDLE_TYPE} != "okd" ]; then
127-
# Install qemu-user-static-x86 package from fedora koji to run x86 image on M1
127+
# Install qemu-user-static-x86 package from fedora-updates repo to run x86 image on M1
128128
# Not supported by RHEL https://access.redhat.com/solutions/5654221 and not included
129129
# in any subscription repo.
130-
${SSH} core@${VM_IP} -- "sudo rpm-ostree install https://kojipkgs.fedoraproject.org//packages/qemu/8.2.6/3.fc40/aarch64/qemu-user-static-x86-8.2.6-3.fc40.aarch64.rpm"
130+
cat > /tmp/fedora-updates.repo <<'EOF'
131+
[fedora-updates]
132+
name=Fedora 41 - $basearch - Updates
133+
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f41&arch=$basearch
134+
enabled=1
135+
type=rpm
136+
repo_gpgcheck=0
137+
gpgcheck=0
138+
EOF
139+
${SCP} /tmp/fedora-updates.repo core@${VM_IP}:/tmp
140+
${SSH} core@${VM_IP} -- "sudo mv /tmp/fedora-updates.repo /etc/yum.repos.d"
141+
${SSH} core@${VM_IP} -- "sudo rpm-ostree install qemu-user-static-x86"
131142
fi
132143

133144
cleanup_vm_image ${VM_NAME} ${VM_IP}

0 commit comments

Comments
 (0)