try to make the liveuser owner of

some libvirt directories
This commit is contained in:
lukas 2021-08-19 12:45:18 +02:00
parent 72a9f5ceef
commit c9b9ff273f
3 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,8 @@ virt-manager
%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.
chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory
chown liveuser:liveuser /var/lib/libvirt/images # Make the user "test" the owner of this directory
%end

View File

@ -35,5 +35,7 @@ virt-manager
%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.
chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory
chown liveuser:liveuser /var/lib/libvirt/images # Make the user "test" the owner of this directory
%end

View File

@ -34,5 +34,7 @@ virt-manager
%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.
chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory
chown liveuser:liveuser /var/lib/libvirt/images # Make the user "test" the owner of this directory
%end