Skip to content

Commit

Permalink
createdisk.sh: enable fedora-updates repo for qemu-user-static-x86
Browse files Browse the repository at this point in the history
Issue #967
  • Loading branch information
redbeam authored and praveenkumar committed Nov 29, 2024
1 parent c43a7c3 commit fdad9e1
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions createdisk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,21 @@ EOF
fi

if [ "${ARCH}" == "aarch64" ] && [ ${BUNDLE_TYPE} != "okd" ]; then
# Install qemu-user-static-x86 package from fedora koji to run x86 image on M1
# Install qemu-user-static-x86 package from fedora-updates repo to run x86 image on M1
# Not supported by RHEL https://access.redhat.com/solutions/5654221 and not included
# in any subscription repo.
${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"
cat > /tmp/fedora-updates.repo <<'EOF'
[fedora-updates]
name=Fedora 41 - $basearch - Updates
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f41&arch=$basearch
enabled=1
type=rpm
repo_gpgcheck=0
gpgcheck=0
EOF
${SCP} /tmp/fedora-updates.repo core@${VM_IP}:/tmp
${SSH} core@${VM_IP} -- "sudo mv /tmp/fedora-updates.repo /etc/yum.repos.d"
${SSH} core@${VM_IP} -- "sudo rpm-ostree install qemu-user-static-x86"
fi

cleanup_vm_image ${VM_NAME} ${VM_IP}
Expand Down

0 comments on commit fdad9e1

Please sign in to comment.