From c9b9ff273fc516f5108c767c9f2a74f8bbf64a58 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 19 Aug 2021 12:45:18 +0200 Subject: [PATCH] try to make the liveuser owner of some libvirt directories --- leaves/ldhamd.cfg | 2 ++ leaves/ldhimd.cfg | 2 ++ leaves/ldhmd.cfg | 2 ++ 3 files changed, 6 insertions(+) diff --git a/leaves/ldhamd.cfg b/leaves/ldhamd.cfg index e90a4bb..816108b 100644 --- a/leaves/ldhamd.cfg +++ b/leaves/ldhamd.cfg @@ -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 diff --git a/leaves/ldhimd.cfg b/leaves/ldhimd.cfg index 87fe28a..fbb6ed9 100644 --- a/leaves/ldhimd.cfg +++ b/leaves/ldhimd.cfg @@ -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 diff --git a/leaves/ldhmd.cfg b/leaves/ldhmd.cfg index 6ff29bc..c3c92dd 100644 --- a/leaves/ldhmd.cfg +++ b/leaves/ldhmd.cfg @@ -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 \ No newline at end of file