Add the new recipe for a live

system and the initial-setup
This commit is contained in:
2021-08-12 20:52:58 +02:00
parent 7f08dbb6fa
commit bbdb2ea293
6 changed files with 58 additions and 27 deletions

View File

@@ -14,16 +14,16 @@
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
# Bye bye!
%include https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/vhmd.cfg # Includes dhd.cfg, a minimal desktop-oriented nested-host ks file
%include https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/vhmd.cfg # Includes vhmd.cfg, a guest hypervisor.
%post # Beginning of %post section
# Load kernel modules in grub. Add `intel_iommu=on intel_iommu=pt` for Intel processors,
# sed -i 's/\(quiet\)/\1 intel_iommu=on iommu=pt rd.driver.pre=vfio-pci i915.enable_gvt=1/i' /etc/default/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
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 --force # Regenerate initramfs
# grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub
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