Skip to content

Commit 032dfa3

Browse files
committed
fix(os): serialize reproducible rootfs compression
1 parent ec11dc5 commit 032dfa3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

os/mkosi/scripts/make-release-artifacts.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ rootfs="$OUT/files/rootfs.squashfs.verity"
2424
truncate -s 0 "$rootfs"
2525
# Privileged mkosi runs can inherit host default ACLs from their workspace.
2626
# The guest rootfs does not rely on xattrs, so exclude this host-only metadata.
27+
# A single compressor worker also avoids host-CPU-dependent fragment ordering.
2728
env -u SOURCE_DATE_EPOCH mksquashfs "$TREE" "$rootfs" -noappend -all-root -no-progress \
28-
-no-xattrs -comp zstd -mkfs-time "$SOURCE_DATE_EPOCH" \
29+
-no-xattrs -processors 1 -comp zstd -mkfs-time "$SOURCE_DATE_EPOCH" \
2930
-all-time "$SOURCE_DATE_EPOCH" >/dev/null
3031
data_size=$(stat -c %s "$rootfs")
3132
data_size=$(( (data_size + 4095) / 4096 * 4096 ))

0 commit comments

Comments
 (0)