From 4cf87b065e0c453eddf9d95d3bd5f6ddca7f2855 Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Mon, 15 Apr 2024 21:04:24 +0900 Subject: [PATCH] bake.sh: Add mksquashfs flags to prevent appending and reduce warnings 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. --- bake.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bake.sh b/bake.sh index 754d457..8047c91 100755 --- a/bake.sh +++ b/bake.sh @@ -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"