please add option to override -all-root in "snapcraft snap"
Metadata
Current evaluation
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.
Resolution: closed resolved
Reason: Maintainer sergiusens linked canonical/snapcraft#391, which was merged as commit 8887fe616 containing13a0d1cda 'Snaps of type os should not squash with -all-root', closing LP bug #1557513.
Evaluated by: mr-cal-bot
No scores available.
Issue body
to build the os snaps with our livecd-rootfs/live-build setup mksquashfs needs to be called without -all-root by snapcraft
with the fix to Bug #1546821 -all-root was added as default setting. to create a rootfs snap we need the files and dirs owned by system users though, so to use snapcraft to create such a file system there needs to be an option to override this default.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | 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. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/snapcraft#391 (commit 8887fe616) so type os snaps omit mksquashfs -all-root, preserving system-user ownership in rootfs snaps. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged snapcraft#391 (commit 8887fe616): OS-type snaps now omit mksquashfs -all-root instead of requiring a general override option. | |
| stealth/space-bunny-alpha | — | closed stale | Request to override mksquashfs -all-root was closed without implementation or comments; snapcraft#1557513 was abandoned after years of inactivity. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The request to add a flag overriding the default -all-root behavior in snapcraft snap received no comments or implementation. The issue appears abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | The request to override the -all-root flag in snapcraft was closed without implementation. With zero comments and no linked pull request, the feature was abandoned and never added to the build tool. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#391
(confidence 97%)
Merged PR implementing the fix; commit 8887fe616 / 13a0d1cda drops -all-root for os-type snaps.
-
Related To:
snapcraft#2090
(confidence 55%)
Later commit 7f8ebc425 'lifecycle: skip -all-root for base snaps' extends the same behaviour to base snaps.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1546821 please add -all-root and -no-xattrs to mksquashfs options | snapcraft (launchpad) | closed | Fixed by merged snapcraft PR #334 (e93fcc0a8), adding mksquashfs -all-root and -no-xattrs for safer, reproducible SquashFS output. | |
| #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. | |
| #2090 internal: skip -all-root for base snaps | snapcraft | merged | 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. |