From 7640a99062642c8bb4defebf95a4f325d387c0ca Mon Sep 17 00:00:00 2001 From: Angaddeep Singh Date: Thu, 19 Sep 2024 07:14:33 +0530 Subject: [PATCH] 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 --- tabs/system-setup/fedora/virtualization.sh | 21 +++++++++++++++++++++ tabs/system-setup/tab_data.toml | 16 +++++++++++----- 2 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 tabs/system-setup/fedora/virtualization.sh diff --git a/tabs/system-setup/fedora/virtualization.sh b/tabs/system-setup/fedora/virtualization.sh new file mode 100644 index 00000000..35a72b7d --- /dev/null +++ b/tabs/system-setup/fedora/virtualization.sh @@ -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 diff --git a/tabs/system-setup/tab_data.toml b/tabs/system-setup/tab_data.toml index 178a5680..7565c148 100644 --- a/tabs/system-setup/tab_data.toml +++ b/tabs/system-setup/tab_data.toml @@ -31,19 +31,25 @@ matches = true data = "command_exists" 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]] name = "Configure DNF" +description = "Optimizes DNF for parallel downloads" script = "fedora/configure-dnf.sh" [[data.entries]] name = "Multimedia Setup" 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]] name = "Full System Cleanup" script = "system-cleanup.sh"