← Back to issue list

no uid/gid mappings when building on core22 with multipass

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1995293
Type
issue
State
open
Author
~andreitoterman
Labels
craft-1596
Created
Updated
Closed
—

Current evaluation

Reproduced Multipass/core22 builds leave /root/project owned by ubuntu:ubuntu instead of root:root; the unset mapping was traced to craft-providers.

Suggested action: keep open

Reason: The report provides exact core20 and core22 Multipass reproductions, and maintainer ~mr-cal reproduced the behavior and identified craft-providers' launched_environment default as the cause. No resolving PR, commit, or release reference is present, so this acknowledged bug should remain open.

Evaluated by: mr-cal-bot

Impact: 55 Quick Win: 30 Complexity: 38 Confidence: 94 Actionability: 88

Issue body

Snapcraft 7.2.3 When using Multipass as the build environment and core22 as the base, the project directory is mounted into /root/project without any uid/gid mappings, so it end up being owned by ubuntu:ubuntu, as opposed to root:root when using core20 as the base. # build default core20 snap with multipass as build environment snapcraft init export SNAPCRAFT_BUILD_ENVIRONMENT=multipass snapcraft # project directory mounted with proper uid/gid mappings multipass exec snapcraft-my-snap-name -- sudo ls -ld /root/project drwxr-xr-x 1 root root 4096 Oct 31 16:05 /root/project # build same snap with core22 sed -i s/core20/core22/ snap/snapcraft.yaml snapcraft # no more uid/gid mappings for mounted directory multipass exec snapcraft-my-snap-name-on-amd64-for-amd64-133985 -- sudo ls -ld /root/project drwxr-xr-x 2 ubuntu ubuntu 4096 Oct 31 15:59 /root/project

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 55
Quick Win: 30
Complexity: 38
Confidence: 94
Actionability: 88
keep open Reproduced Multipass/core22 builds leave /root/project owned by ubuntu:ubuntu instead of root:root; the unset mapping was traced to craft-providers.
stealth/space-bunny-alpha
Impact: 48
Quick Win: 21
Complexity: 52
Confidence: 92
Actionability: 90
keep open Multipass core22 builds leave /root/project owned by ubuntu:ubuntu rather than mapped to root:root; reproduced and root-caused in craft-providers, with no fix yet.
stealth/space-bunny-alpha
Impact: 40
Quick Win: 12
Complexity: 55
Confidence: 67
Actionability: 68
needs triage Core22 Multipass builds mount /root/project as ubuntu:ubuntu without ID mappings, unlike core20. A precise owner-versus-mapping reproducer is provided, but the impact on builds and the responsible mount configuration remain unverified.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 30
Staleness: 95
Complexity: 40
Confidence: 60
Support Request: 30
close stale Multipass build with core22 mounts project directory without uid/gid mappings, causing ownership issues
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 70
Confidence: 60
Support Request: 10
needs triage Multipass build environment mounts project directory without uid/gid mappings when using core22 base, unlike core20. Report includes reproduction steps but has zero maintainer comments and over 3.5 years of inactivity.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 45
Confidence: 85
Support Request: 15
close stale Bug report regarding missing uid/gid mappings for mounted project directories when using Multipass with core22 base in Snapcraft. Issue remains open with no maintainer response after over three years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 10
close stale Snapcraft core22 builds with Multipass lack uid/gid mappings for mounted project directories, causing incorrect ownership compared to core20. Issue is over 3 years old with no maintainer response.

Update history

Date Change
created

Related work

  • Related To: craft-providers#1596 (confidence 95%)

    The craft-1596 label and maintainer comment identify craft-providers as the source of the Multipass UID/GID mapping behavior.

Related issues

No related issues found above the similarity threshold.