aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
author0.alpha <meJustPlay@163.com>2022-05-11 20:35:13 +0800
committerGitHub <noreply@github.com>2022-05-11 20:35:13 +0800
commit9239045e317fc1ea17fefb294f50ed49b02e1ec6 (patch)
tree0abed7ba74777b01797a29a5902232e83cde7ece /install.sh
parente2134a3d5192db7be91b62f918cc6194e4096515 (diff)
downloadcachepc-amdsev-9239045e317fc1ea17fefb294f50ed49b02e1ec6.tar.gz
cachepc-amdsev-9239045e317fc1ea17fefb294f50ed49b02e1ec6.zip
Update install.sh
Diffstat (limited to 'install.sh')
-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