this seems to not be related to -all-root but actually something in the prime step seems to mangle the permissions.
i have checked with a snapcraft where i hardcoded -all-root and also added debug output that checks the permissions before the stage and prime steps run.
the permissions in $(DESTDIR) are still correct before stage and prime run. seems we need some more recognition of "type: os" in these steps so it doesnt modify the rootfs.
this seems to not be related to -all-root but actually something in the prime step seems to mangle the permissions.
i have checked with a snapcraft where i hardcoded -all-root and also added debug output that checks the permissions before the stage and prime steps run.
the permissions in $(DESTDIR) are still correct before stage and prime run. seems we need some more recognition of "type: os" in these steps so it doesnt modify the rootfs.