Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createdisk.sh: enable fedora-updates repo for qemu-user-static-x86 #986

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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