File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,8 +22,11 @@ rootfs="$OUT/files/rootfs.squashfs.verity"
2222# mksquashfs -noappend overwrites its filesystem but does not reliably remove
2323# a longer dm-verity tail left by a previous invocation.
2424truncate -s 0 " $rootfs "
25+ # Privileged mkosi runs can inherit host default ACLs from their workspace.
26+ # The guest rootfs does not rely on xattrs, so exclude this host-only metadata.
2527env -u SOURCE_DATE_EPOCH mksquashfs " $TREE " " $rootfs " -noappend -all-root -no-progress \
26- -comp zstd -mkfs-time " $SOURCE_DATE_EPOCH " -all-time " $SOURCE_DATE_EPOCH " > /dev/null
28+ -no-xattrs -comp zstd -mkfs-time " $SOURCE_DATE_EPOCH " \
29+ -all-time " $SOURCE_DATE_EPOCH " > /dev/null
2730data_size=$( stat -c %s " $rootfs " )
2831data_size=$(( (data_size + 4095 ) / 4096 * 4096 ))
2932truncate -s " $data_size " " $rootfs "
You can’t perform that action at this time.
0 commit comments