add --nochroot execution in %post

refactor references
add instructions to use livecd-creator to create iso file
add instruction for using qemu-kvm to test the iso file
This commit is contained in:
2021-08-19 12:06:32 +02:00
parent 44346a243d
commit 23d34b8d5d
2 changed files with 46 additions and 5 deletions

View File

@ -15,5 +15,26 @@
# Here is how you can do it with the ksflatten tool provided by the pykickstart package on Fedora :
# ksflatten -c ldhamd.cfg -o flat-ldhamd.cfg
%include ldhmd.cfg # A live desktop hypervisor machine
%include bamd.cfg # Specific virtualization configuration for AMD (tm) CPUs
# An ISO file can be created using the following command as *root*:
# livecd-creator -c flat-ldhamd.cfg --fslabel=ldhamd
# 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 ldhamd.iso
%include ldmd.cfg # A base for a live desktop minimal machine
%include bhmd.cfg # A base hypervisor
%include bhamd.cfg # Specific virtualization configuration for AMD (tm) CPUs
%packages --exclude-weakdeps
virt-manager
%end
%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.
%end