Skip to content

Commit

Permalink
bake.sh: Add mksquashfs flags to prevent appending and reduce warnings
Browse files Browse the repository at this point in the history
While the use of mksquashfs here happens in a way where no existing file
should be there to append to, it's better to always overwrite. Since
one might get a lot of warnings on btrfs systems about unknown xattrs,
we can also silence these.
  • Loading branch information
pothos committed Apr 15, 2024
1 parent c699a22 commit 4cf87b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ elif [ "${FORMAT}" = "ext4" ] || [ "${FORMAT}" = "ext2" ]; then
mkfs."${FORMAT}" -E root_owner=0:0 -d "${SYSEXTNAME}" "${SYSEXTNAME}".raw
resize2fs -M "${SYSEXTNAME}".raw
else
mksquashfs "${SYSEXTNAME}" "${SYSEXTNAME}".raw -all-root
mksquashfs "${SYSEXTNAME}" "${SYSEXTNAME}".raw -all-root -noappend -xattrs-exclude '^btrfs.'
fi
echo "Created ${SYSEXTNAME}.raw"

0 comments on commit 4cf87b0

Please sign in to comment.