lxd: configure user in container
Metadata
Current evaluation
Closed unmerged; PR #1847 superseded this proof of concept with narrower LXD remote-sshfs user support, merged as e7d73a365.
Resolution: closed superseded
Reason: PR #1847 implemented the needed container-user setup for remote sshfs builds and prevented root-owned project files, merging as commit e7d73a365. It replaced #1484's broader proof of concept rather than merging it.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This branch enables a distinction between building with a user inside the container and root (as currently is the only option). Setting up the user needs some care with regard to file ownership, it includes knowing what commands to run as root (`apt-get`) and as the user (`mkdir`).
Note this is largely a proof of concept, [the discussion](https://forum.snapcraft.io/t/run-snapcraft-in-container-as-a-user/1438/5) on the exact behavior is still on-going.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | Closed unmerged; PR #1847 superseded this proof of concept with narrower LXD remote-sshfs user support, merged as e7d73a365. | |
| stealth/space-bunny-alpha | — | closed superseded | Closed unmerged as a proof of concept; canonical/snapcraft#1847 later merged narrower LXD container-user support in commit e7d73a365. | |
| stealth/space-bunny-alpha | — | closed superseded | Closed unmerged; canonical/snapcraft#1847 (e7d73a365) delivered narrower LXD container-user support to correct sshfs file ownership. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without merging. The LXD container user configuration proposal remained a proof of concept pending forum discussion and received no reviews. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without merging. The branch served as a proof of concept for container user configuration and was abandoned pending forum discussion on implementation details. |
Update history
No update history recorded yet.
Related work
-
Superseded By:
canonical/snapcraft#1847
(confidence 99%)
Merged narrower implementation for creating and using an LXD container user when mounting remote projects via sshfs.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1847 lxd: Use user in container when mounting remote via sshfs | snapcraft | merged | Merged as commit e7d73a365: snapcraft now creates a user in the LXD container for remote sshfs builds so project files aren't left root-owned, fixing LP bug #1741082. | |
| #1461 build as a user in container | snapcraft | closed | Broad non-root LXD builds remained unimplemented: PR #1484 was closed unmerged after design concerns; PR #1847 merged e7d73a365 only for remote sshfs mount ownership. |