Added Virtualization Setup for Fedora (#395)

* Added Virtualization Setup

* Space FIx

* small fix fix

* Update virtualization.sh

* Update virtualization.sh

---------

Co-authored-by: Chris Titus <contact@christitus.com>
This commit is contained in:
Angaddeep Singh 2024-09-19 07:14:33 +05:30 committed by GitHub
parent 67a19b06e8
commit 7640a99062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 32 additions and 5 deletions

View File

@ -0,0 +1,21 @@
#!/bin/sh -e
. ../../common-script.sh
# Install virtualization tools to enable virtual machines
configureVirtualization() {
case $PACKAGER in
dnf)
printf "%b\n" ${YELLOW}"Installing virtualization tools...${RC}"
$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

View File

@ -31,19 +31,25 @@ matches = true
data = "command_exists" data = "command_exists"
values = ["dnf"] values = ["dnf"]
[[data.entries]]
name = "RPM Fusion Setup"
description = "RPM Fusion provides software that the Fedora Project or Red Hat doesn't want to ship.\nThat software is provided as precompiled RPMs for all current Fedora versions and current Red Hat Enterprise Linux or clones versions; you can use the RPM Fusion repositories with tools like yum and PackageKit.\nFor more information visit: https://rpmfusion.org/"
script = "fedora/rpm-fusion-setup.sh"
[[data.entries]] [[data.entries]]
name = "Configure DNF" name = "Configure DNF"
description = "Optimizes DNF for parallel downloads"
script = "fedora/configure-dnf.sh" script = "fedora/configure-dnf.sh"
[[data.entries]] [[data.entries]]
name = "Multimedia Setup" name = "Multimedia Setup"
script = "fedora/multimedia-codecs.sh" script = "fedora/multimedia-codecs.sh"
[[data.entries]]
name = "RPM Fusion Setup"
description = "RPM Fusion provides software that the Fedora Project or Red Hat doesn't want to ship.\nThat software is provided as precompiled RPMs for all current Fedora versions and current Red Hat Enterprise Linux or clones versions; you can use the RPM Fusion repositories with tools like yum and PackageKit.\nFor more information visit: https://rpmfusion.org/"
script = "fedora/rpm-fusion-setup.sh"
[[data.entries]]
name = "Virtualization Setup"
description = "Enables Virtualization through dnf"
script = "fedora/virtualization.sh"
[[data]] [[data]]
name = "Full System Cleanup" name = "Full System Cleanup"
script = "system-cleanup.sh" script = "system-cleanup.sh"