From 44346a243d654e09c2e10a22e0af5cc5b86f8e22 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 19 Aug 2021 12:02:52 +0200 Subject: [PATCH] add --nochroot execution in %post add instructions to use livecd-creator to create iso file add instruction for using qemu-kvm to test the iso file --- leaves/ldhmd.cfg | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/leaves/ldhmd.cfg b/leaves/ldhmd.cfg index 43dd67e..6ff29bc 100644 --- a/leaves/ldhmd.cfg +++ b/leaves/ldhmd.cfg @@ -15,6 +15,13 @@ # Here is how you can do it with the ksflatten tool provided by the pykickstart package on Fedora : # ksflatten -c ldhmd.cfg -o flat-ldhmd.cfg +# An ISO file can be created using the following command as *root*: +# livecd-creator -c flat-ldhmd.cfg --fslabel=ldhmd +# livecd-creator is part of the livecd-tools package + +# The resulting ISO can be tested with qemu-kvm, using the following command as *root*: +# qemu-kvm -m 2048 -vga virtio -display gtk,gl=on ldhmd.iso + %include ldmd.cfg # A base for a live desktop minimal machine %include bhmd.cfg # A base hypervisor @@ -24,7 +31,7 @@ virt-manager %end -%post +%post --nochroot # Beginning of %post section. Those commands are executed outside the chroot environment usermod -a -G libvirt liveuser # Make user "liveuser" part of the existing libvirt group to allow it to interact with the guest-hypervisor.