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.
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