linutil/tabs/system-setup/fedora/virtualization.sh

22 lines
564 B
Bash
Raw Normal View History

#!/bin/sh -e
. ../../common-script.sh
# Install virtualization tools to enable virtual machines
configureVirtualization() {
2024-09-19 19:05:36 +01:00
case "$PACKAGER" in
dnf)
printf "%b\n" ${YELLOW}"Installing virtualization tools...${RC}"
2024-09-19 19:05:36 +01:00
"$ESCALATION_TOOL" "$PACKAGER" install -y @virtualization
printf "%b\n" "${GREEN}Installed virtualization tools...${RC}"
;;
*)
printf "%b\n" "${RED}Unsupported distribution: $DTYPE${RC}"
;;
esac
}
checkEnv
checkEscalationTool
configureVirtualization