diff --git a/QemuSystemInstall.sh b/QemuSystemInstall.sh index 38f3e9a..8a324f9 100755 --- a/QemuSystemInstall.sh +++ b/QemuSystemInstall.sh @@ -1,4 +1,10 @@ #!/bin/bash +# 如果是 Arch Linux +if [[-f /etc/arch-release ]]; then + sudo pacman -Syu + sudo pacman -S qemu-user qemu-user-static qemu-full + exit +fi sudo apt update sudo apt install qemu-system qemu-user qemu-efi qemu-efi-aarch64 qemu-efi-arm -y sudo apt install qemu-user-static binfmt-support qemu-system-gui -y