move a few redondant files to archive

This commit is contained in:
lukas 2021-08-18 11:54:23 +02:00
parent d8ca558b54
commit e9cd554b6c
3 changed files with 77 additions and 0 deletions

39
archive/rdmd.cfg Normal file
View File

@ -0,0 +1,39 @@
# __ ____ ____ _____
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
# /_/ /____/
# What ? This kickstart file bootstraps a minimal GNOME-based desktop-oriented virtual machine.
# 'v' for virtual machine, 'd' for desktop, 'm' for minimal, 'd' for development only.
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
# Bye bye!
%include vmd.cfg # Include vmd.cfg, a minimal system based on Fedora 34.
xconfig --startxonboot --defaultdesktop=GNOME # Start GNOME on boot. Althought it says X, it works as well with Wayland
# firstboot --enable --reconfig # Initial Setup will start after the first reboot
%packages # Beginning of the post-installation section
spice-vdagent # Try to install spice-vdagent after the installation is done
dejavu-sans-mono-fonts # the gnome-shell package doesn't include much fonts by default, resulting in weird spacings in the gnome-terminal.
elementary-wallpapers-gnome.noarch # Gorgeous wallpapers
wpa_supplicant # WPA Supplicant for Linux. Not integrated by default in gnome-shell, but necessary to configure wireless networks through the Network Manager.
# initial-setup-gui # Wasn't able to make it working.
# gnome-initial-setup # Add GNOME initial setup too. Does work.
-gnome-tour # We don't want GNOME-tour to open at launch so we delete it
gnome-shell
gnome-terminal
nano # Minimal GNOME shell or desktop environment plus the nano text editor
%end
%post
# systemctl set-default graphical.target # Set the desktop environment as the default booting target with systemd.
# Alternatively, that could be tested outside of the post section xconfig --startxonboot --defaultdesktop=GNOME
%end # End of the %post section

17
archive/rhamd.cfg Normal file
View File

@ -0,0 +1,17 @@
# __ ____ ____ _____
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
# /_/ /____/
# What ? This Kickstart file bootstraps a minimal headless guest hypervisor optimized for AMD CPUs.
# 'b' for base, 'h' for hypervisor', 'a' for amd, 'm' for minimal, 'd' for development only.
%post # Beginning of %post section
sed -i 's/\(quiet\)/\1 amd_iommu=on amd_iommu=pt rd.driver.pre=vfio-pci/i' /etc/default/grub # Load kernel modules in grub.
dracut --force # Regenerate initramfs
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub
%end # End of the %post section

21
archive/rhimd.cfg Normal file
View File

@ -0,0 +1,21 @@
# __ ____ ____ _____
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
# /_/ /____/
# What ? This Kickstart file provides a base configuration for an hypervisor installed on Intel(tm) CPUs and Intel(tm) Graphics.
# 'b' for base, 'i' for intel, 'm' for minimal, 'd' for development only.
%post # Beginning of %post section
sed -i 's/\(quiet\)/\1 intel_iommu=on iommu=pt rd.driver.pre=vfio-pci i915.enable_gvt=1/i' /etc/default/grub # Load kernel modules in grub.
echo "kvmgt" > /etc/modules-load.d/kvmgt.conf # Load specific kernel modules kvmgt and vfio-mdev, for Intel GVT-g and Nvidia
echo "vfio-mdev" > /etc/modules-load.d/vfio-mdev.conf # Load specific kernel modules kvmgt and vfio-mdev, for Intel GVT-g and Nvidia
dracut --add-drivers "vfio-mdev kvmgt" --force # Instruct dracut to load the vfio drivers:
dracut --force # Regenerate initramfs
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub
%end # End of the %post section