aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh4
1 files 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