Update the initramfs generation logic to set 755 permissions on /init by OneBlue · Pull Request #13567 · microsoft/WSL
Summary of the Pull Request
This isn't usually an issue since /init is bind-mounted read-only, but it causes issues in systemd since it thinks that it's world writeable. There shouldn't be any downside for setting the permissions to 755
PR Checklist
- Closes: Link to issue wsl: Failed to start the systemd user session for 'l3gi0n'. See journalctl for more details. #13564
- Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
- Tests: Added/updated if needed and all pass
- Localization: All end user facing strings can be localized
- Dev docs: Added/updated if needed
- Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx