From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Snap package" |
|---|
| claim | "snapd builds a snap with mksquashfs -noappend -comp <compression>, defaulting to xz (SquashFS compression id 4), so a store snap normally has id 4 at superblock offset 20." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Snap package" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "Snap.Build with empty Compression option" |
|---|
| effect | "compression = xz; mksquashfs invoked with -noappend" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "default compression assignment and mksquashfs arguments; the id 4 mapping is from squashfs_fs.h" |
|---|
| repo | "https://github.com/canonical/snapd" |
|---|
| commit | "1c1dde3f641ad9219905e50acde90a818b069307" |
|---|
| path | "snap/squashfs/squashfs.go" |
|---|
| lines | "693-708" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Default build compression xz" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:06:27.450Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T04:02:54.899Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read snapd snap/squashfs/squashfs.go at 1c1dde3 lines 680-720 (Snap.Build): empty opts.Compression becomes xz and mksquashfs gets -noappend -comp. The 'store snap normally id 4' consequence is an inference (snapcraft/store builds are not this function)." |
|---|
|
|
|---|