From c8b083a1d8362ffd3ed62a0c7b2bee5d3be78fec Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 19 Aug 2021 11:59:29 +0200 Subject: [PATCH] add --nochroot execution in %post --- leaves/bhamd.cfg | 2 +- leaves/bhimd.cfg | 4 ++-- leaves/bhmd.cfg | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/leaves/bhamd.cfg b/leaves/bhamd.cfg index 56d354d..d4745e5 100644 --- a/leaves/bhamd.cfg +++ b/leaves/bhamd.cfg @@ -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. diff --git a/leaves/bhimd.cfg b/leaves/bhimd.cfg index d2c0b89..29f586f 100644 --- a/leaves/bhimd.cfg +++ b/leaves/bhimd.cfg @@ -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. diff --git a/leaves/bhmd.cfg b/leaves/bhmd.cfg index 7fe70e5..457cd8a 100644 --- a/leaves/bhmd.cfg +++ b/leaves/bhmd.cfg @@ -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