修改VMInstaller Qemu安装脚本以支持Arch Linux

This commit is contained in:
gfdgd xi 2024-01-31 22:04:38 +08:00
parent 3771da5c58
commit b6de82437b

@ -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