microsoft / microsoft/azure-linux-dev-tools
'azldev image build' needs to run as non-root user
Open
@reubeno is already working on this.
Since Sep 1, 2026.
bug
enhancement
- Dominant language
- Go
- Stars
- 18
- Forks
- 27
- Avg merge
- 4d 33m
- Merged PRs (30d)
- 24
Description
Building as the root user isn't a safe operation, for example after some image builds there are root-owned files polluting the azurelinux git checkout, which can't be removed with git clean -fdx because they are root-owned, and when i ran sudo git clean -fdx it removed most of my /dev/* files (including /dev/null), rendering my dev system unusable (luckily a reboot recovered to a usable state).
Instructions for building with kiwi as non-root are here: https://osinside.github.io/kiwi/plugins/self_contained.html
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.