Patched iso fix permission for ostree_repo

When we try to generate a prepatched iso as non-root
the ostree pull command fails with permission denied,
this commit sets the +w to the temporary working dir.

Test Plan:
Pass: Create patched iso as root/sudo
Pass: patch patched iso as non-root user

Story: 2009969
Task: 46467
Signed-off-by: Luis Sampaio <luis.sampaio@windriver.com>
Change-Id: Ifd52ef57e4ee77fa3280ad7bfacc831b327bf4dc
This commit is contained in:
Luis Sampaio 2023-01-24 13:00:50 -08:00
parent 8284582ee2
commit e1c55d8e24
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ unmount_iso
# Fix for permission denied if not running as root
chmod +w ${BUILDDIR}
chmod -R +w ${BUILDDIR}/isolinux
chmod -R +w ${BUILDDIR}/ostree_repo
# Extract patch xml
mkdir ${BUILDDIR}/patches