Cosmetics.

This commit is contained in:
Tommaso Chiti 2022-05-27 12:33:07 +02:00
parent 1061b8b9a5
commit e1ffe09e7d

View file

@ -24,29 +24,21 @@ incEcho () {
virt_check () {
hypervisor=$(systemd-detect-virt)
case $hypervisor in
kvm ) print "KVM has been detected."
print "Installing guest tools."
kvm ) print "KVM has been detected, setting up guest tools."
pacstrap /mnt qemu-guest-agent >/dev/null
print "Enabling specific services for the guest tools."
systemctl enable qemu-guest-agent --root=/mnt &>/dev/null
;;
vmware ) print "VMWare Workstation/ESXi has been detected."
print "Installing guest tools."
vmware ) print "VMWare Workstation/ESXi has been detected, setting up guest tools."
pacstrap /mnt open-vm-tools >/dev/null
print "Enabling specific services for the guest tools."
systemctl enable vmtoolsd --root=/mnt &>/dev/null
systemctl enable vmware-vmblock-fuse --root=/mnt &>/dev/null
;;
oracle ) print "VirtualBox has been detected."
print "Installing guest tools."
oracle ) print "VirtualBox has been detected, setting up guest tools."
pacstrap /mnt virtualbox-guest-utils >/dev/null
print "Enabling specific services for the guest tools."
systemctl enable vboxservice --root=/mnt &>/dev/null
;;
microsoft ) print "Hyper-V has been detected."
print "Installing guest tools."
microsoft ) print "Hyper-V has been detected, setting up guest tools."
pacstrap /mnt hyperv >/dev/null
print "Enabling specific services for the guest tools."
systemctl enable hv_fcopy_daemon --root=/mnt &>/dev/null
systemctl enable hv_kvp_daemon --root=/mnt &>/dev/null
systemctl enable hv_vss_daemon --root=/mnt &>/dev/null