Merge "init: Fix chown and chmod for write-only files"