From 9239045e317fc1ea17fefb294f50ed49b02e1ec6 Mon Sep 17 00:00:00 2001 From: "0.alpha" Date: Wed, 11 May 2022 20:35:13 +0800 Subject: Update install.sh --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 24a4eb0..c5572f0 100755 --- a/install.sh +++ b/install.sh @@ -3,13 +3,13 @@ [ -e /etc/os-release ] && . /etc/os-release # This will install all the dependent packages for qemu and ovmf to run -if [ "$ID_LIKE" = "debian" ]; then +if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then apt-get -y install qemu ovmf else dnf install qemu edk2-ovmf fi -if [ "$ID_LIKE" = "debian" ]; then +if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then dpkg -i linux/host/linux-image-*.deb else rpm -ivh linux/kernel-*.rpm -- cgit v1.2.3-71-gd317