Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:nkrapp:branches:Base:System
dracut
RUN-QEMU-V59-openQA.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File RUN-QEMU-V59-openQA.patch of Package dracut
From 75b83db4b4f0cd52b6c9c8c4d2b58a2e05c67988 Mon Sep 17 00:00:00 2001 From: nkrapp <nico.krapp@suse.com> Date: Tue, 9 May 2023 17:50:24 +0200 Subject: [PATCH] Patch RUN QEMU test --- test/run-qemu | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/run-qemu b/test/run-qemu index 5dc610379..01c1129c3 100755 --- a/test/run-qemu +++ b/test/run-qemu @@ -2,6 +2,25 @@ # Check which virtualization technology to use # We prefer kvm, kqemu, userspace in that order. +ARCH=$(uname -m) + case $ARCH in + x86_64|i*86) + QEMU_PKG=qemu-x86 + ;; + ppc64*) + QEMU_PKG="qemu-ppc qemu-vgabios" + ;; + s390x) + QEMU_PKG=qemu-s390 + ;; + aarch64) + QEMU_PKG=qemu-arm + ;; + esac + +rpm -q $QEMU_PKG || zypper -n in --no-recommends "$QEMU_PKG" qemu-kvm +[[ $? -ne 0 ]] && { echo "error installing required packages"; exit 1; } + export PATH=/usr/sbin:/usr/bin:/sbin:/bin QEMU_CPU="${QEMU_CPU:-max}"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor