add --nochroot execution in %post
This commit is contained in:
parent
70395410d6
commit
c8b083a1d8
@ -8,7 +8,7 @@
|
|||||||
# What ? This kickstart file further configures an hypervisor for AMD (tm) CPUs
|
# 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.
|
# '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.
|
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.
|
||||||
|
|
||||||
|
@ -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.
|
# '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.
|
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.
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ guestfs-tools # Complementary tools useful for interacting with vith guest syste
|
|||||||
|
|
||||||
%end
|
%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
|
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
|
# chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user