add --nochroot execution in %post

This commit is contained in:
lukas 2021-08-19 11:59:29 +02:00
parent 70395410d6
commit c8b083a1d8
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
# What ? This kickstart file further configures an hypervisor for AMD (tm) CPUs
# 'b' for basic building block, 'a' for amd, 'm' for minimal, 'd' for development only.
%post # Beginning of %post section
%post --nochroot # Beginning of %post section. Those commands are executed outside the chroot environment
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.

View File

@ -5,10 +5,10 @@
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
# /_/ /____/
# What ? This kickstart file further configures an hypervisor for Intel(tm) CPUs and Intel(tm) Graphics.
# What ? This kickstart file further configures an hypervisor for Intel(tm) CPUs and Intel(tm) graphic cards
# 'b' for basic building block, 'h' for hypervisor', 'i' for intel, 'm' for minimal, 'd' for development only.
%post # Beginning of %post section
%post --nochroot # Beginning of %post section. Those commands are executed outside the chroot environment
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.

View File

@ -22,7 +22,7 @@ guestfs-tools # Complementary tools useful for interacting with vith guest syste
%end
%post # Beginning of %post section
%post --nochroot # Beginning of %post section. Those commands are executed outside the chroot environment
mkdir /var/lib/libvirt/iso # Create a directory to store iso images
# chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory