Use correct riscv qemu package for ubuntu

This commit is contained in:
Wildan M 2026-05-03 06:27:34 +07:00
parent 16103df825
commit c3ccda5e99
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
2 changed files with 11 additions and 5 deletions

View File

@ -456,9 +456,12 @@ ubuntu()
if [ "$1" == "qemu" ]; then
if [ -z "$(which qemu-system-x86_64)" ]; then
echo "Installing QEMU..."
if apt-cache show qemu-system-riscv > /dev/null 2>&1
then riscv="qemu-system-riscv" # ubuntu 26 / debian 13
else riscv="qemu-system-riscv64" # ubuntu 24 / debian 12
fi
sudo $install_command qemu-system-x86 qemu-kvm \
qemu-system-arm qemu-efi-aarch64 \
qemu-system-riscv
qemu-system-arm qemu-efi-aarch64 $riscv
else
echo "QEMU already installed!"
fi

View File

@ -215,9 +215,12 @@ ubuntu()
if [ "$1" == "qemu" ]; then
if [ -z "$(which qemu-system-x86_64)" ]; then
echo "Installing QEMU..."
sudo "$2" install qemu-system-x86 qemu-kvm
sudo "$2" install qemu-system-arm qemu-efi-aarch64
sudo "$2" install qemu-system-riscv
if apt-cache show qemu-system-riscv > /dev/null 2>&1
then riscv="qemu-system-riscv" # ubuntu 26 / debian 13
else riscv="qemu-system-riscv64" # ubuntu 24 / debian 12
fi
sudo $install_command qemu-system-x86 qemu-kvm \
qemu-system-arm qemu-efi-aarch64 $riscv
else
echo "QEMU already installed!"
fi