microsoft / microsoft/azure-linux-dev-tools

'azldev image build' needs to run as non-root user

Open
#75 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.