← Back to issue list

internal: skip -all-root for base snaps

View original Github issue

Metadata

Project
snapcraft
Number
#2090
Type
pull request
State
merged
Author
mvo5
Labels
—
Created
Updated
Closed

Current evaluation

Merged #2090 as commit 7f8ebc425, omitting -all-root for base snaps to preserve file ownership and prevent core18 files such as etc/shadow from becoming root:root.

Resolution: closed resolved

Reason: PR #2090 was approved and merged as commit 7f8ebc425, implementing the base-snap ownership fix.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When base snaps become bootable we will need to ensure that they do not squash all uids on the snap into "root". This fixes core18 builds that change some files like etc/shadow from root:shadow to root:root.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #2090 as commit 7f8ebc425, omitting -all-root for base snaps to preserve file ownership and prevent core18 files such as etc/shadow from becoming root:root.
stealth/space-bunny-alpha — closed resolved Merged #2090 as commit 7f8ebc425, omitting -all-root for base snaps to prevent UID squashing and preserve ownership such as etc/shadow's shadow group in core18 builds.
qwen/qwen3.6-35b-a3b — — Merged to skip the -all-root flag for base snaps, preventing UID squashing to root. This resolves core18 build file ownership discrepancies, such as etc/shadow reverting to root:root. Approved and passed CI.
qwen3.6-35b-a3b-mtp-q6 — — Merged a change to skip the -all-root flag for base snaps. This prevents UID squashing to root, resolving core18 build issues where files like etc/shadow incorrectly changed ownership to root:root.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1557513 please add option to override -all-root in "snapcraft snap" snapcraft (launchpad) closed Resolved by canonical/snapcraft#391 (commit 8887fe616, 'Snaps of type os should not squash with -all-root'): snaps of type 'os' now omit mksquashfs -all-root, preserving system-user ownership for livecd rootfs builds.
74%
#391 Snaps of type os should not squash with -all-root snapcraft merged Merged PR #391 in commit 8887fe616 so os-type snaps skip -all-root during squashfs packaging, preserving user permissions.
71%