Specifying `/var/lib` in layout breaks snapd because of `/var/lib/snapd`
Metadata
Current evaluation
A /var/lib layout could produce a snap rejected by snapd for masking /var/lib/snapd; merged pack-time skeleton validation now catches this invalid layout.
Suggested action: close resolved
Reason: The author identified that only /var/lib/snapd was blocked, and maintainer Sergiusens pointed to snap pack --check-skeleton. Merged commit 7c927032d added that pack-time check, and the current layout reference still documents /var/lib/snapd as disallowed.
Evaluated by: mr-cal-bot
Impact:
48
Quick Win:
36
Complexity:
18
Confidence:
94
Actionability:
92
Issue body
If I layout `/var/lib/` in a snapcraft.yaml, it builds fine but the resulting snap will not install due to it overwriting `/var/lib/snapd`.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
48
Quick Win:
36
Complexity:
18
Confidence:
94
Actionability:
92
|
close resolved | A /var/lib layout could produce a snap rejected by snapd for masking /var/lib/snapd; merged pack-time skeleton validation now catches this invalid layout. | |
| stealth/space-bunny-alpha |
Impact:
72
Quick Win:
31
Complexity:
48
Confidence:
87
Actionability:
82
|
keep open | A /var/lib layout can produce an apparently valid snap that later breaks snapd by masking /var/lib/snapd; proposed Snapcraft-time validation remains unresolved. | |
| stealth/space-bunny-alpha |
Impact:
48
Quick Win:
17
Complexity:
48
Confidence:
93
Actionability:
70
|
needs triage | A /var/lib/ layout builds successfully but makes the snap uninstallable by shadowing /var/lib/snapd; the report remains untriaged with no maintainer response or linked fix. | |
| qwen/qwen3.8-27b |
Impact:
25
Quick Win:
18
Staleness:
92
Complexity:
30
Confidence:
72
Support Request:
10
|
needs triage | Snapcraft allows /var/lib as a layout target, which shadows /var/lib/snapd and produces an uninstallable snap. No validation rejects parent paths of disallowed layout targets. 7 years old, zero comments, no labels, no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
10
|
close stale | Specifying /var/lib in a snap layout overwrites /var/lib/snapd, preventing installation. Issue has been inactive for over 6 years with no maintainer response or labels. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
10
|
close stale | Specifying /var/lib in a snap layout overwrites /var/lib/snapd, preventing installation. Unlabeled, no maintainer response, inactive for nearly 7 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
20
|
close stale | Snap layout configuration for /var/lib conflicts with /var/lib/snapd during installation. Issue has seen no maintainer activity or comments in over six years. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#3743
(confidence 96%)
Merged PR represented by commit 7c927032d, titled "pack: check skeleton".
Related issues
No related issues found above the similarity threshold.