From 6f277b9a9e9b4b6a642bc1e82028d5394faaae49 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Wed, 12 Jun 2013 01:42:46 +0300 Subject: [PATCH] pnd_make.sh: use root uid/gid for squashfs, not user's there is no point using uid/gid of current user that's creating the .pnd (which can be almost any uid/gid as it's on the host system), the SD card/appdata is owned by root by default, so archived files should be too. It's also the reason why it wasn't possible to update existing files (appdata and pnd uid/git did not match), but also right permissions must be set. --- testdata/scripts/pnd_make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testdata/scripts/pnd_make.sh b/testdata/scripts/pnd_make.sh index 96c3270..fed3396 100755 --- a/testdata/scripts/pnd_make.sh +++ b/testdata/scripts/pnd_make.sh @@ -283,9 +283,9 @@ then fi if [ $SQUASHXZ ]; then - mksquashfs $FOLDER $PNDNAME.iso -comp xz -Xbcj arm,armthumb + mksquashfs $FOLDER $PNDNAME.iso -all-root -force-gid 0 -comp xz -Xbcj arm,armthumb else - mksquashfs $FOLDER $PNDNAME.iso + mksquashfs $FOLDER $PNDNAME.iso -all-root -force-gid 0 fi else check_for_tool mkisofs -- 2.39.2