From: Jan Kiszka <[email protected]>

This allows an unprivileged owner to purge the download folder outside
of the build container without having to use sudo.

Signed-off-by: Jan Kiszka <[email protected]>
---
 recipes-core/non-root-initramfs/non-root-initramfs_2018.05.1.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/recipes-core/non-root-initramfs/non-root-initramfs_2018.05.1.bb 
b/recipes-core/non-root-initramfs/non-root-initramfs_2018.05.1.bb
index 0ea150b..81156ed 100644
--- a/recipes-core/non-root-initramfs/non-root-initramfs_2018.05.1.bb
+++ b/recipes-core/non-root-initramfs/non-root-initramfs_2018.05.1.bb
@@ -30,3 +30,7 @@ dpkg_runbuild_prepend() {
 
        ln -sf ${DISTRO_ARCH}-config .config
 }
+
+dpkg_runbuild_append() {
+       sudo chown -R $(stat -c "%U" ${DL_DIR}) ${DL_DIR}/buildroot
+}
-- 
2.16.4

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to