From: Daniel Cordero <catal...@0xdc.io> Users using catalyst outside of the portage tree, or on other distributions, may not have the gensquashfs tool. mksquashfs still creates compatible squashfs images for this purpose.
Signed-off-by: Daniel Cordero <catal...@0xdc.io> --- targets/support/target_image_setup.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/targets/support/target_image_setup.sh b/targets/support/target_image_setup.sh index f9427eaf..045b80b3 100755 --- a/targets/support/target_image_setup.sh +++ b/targets/support/target_image_setup.sh @@ -7,8 +7,13 @@ mkdir -p "${1}" echo "Creating ${clst_fstype} filesystem" case ${clst_fstype} in squashfs) - gensquashfs -D "${clst_stage_path}" -q ${clst_fsops} "${1}/image.squashfs" \ - || die "Failed to create squashfs filesystem" + if command -v mksquashfs; then + mksquashfs "${clst_stage_path}" "${1}/image.squashfs" ${clst_fsops} -noappend \ + || die "mksquashfs failed" + else + gensquashfs -D "${clst_stage_path}" -q ${clst_fsops} "${1}/image.squashfs" \ + || die "Failed to create squashfs filesystem" + fi ;; jffs2) mkfs.jffs2 --root="${clst_stage_path}" --output="${1}/image.jffs" "${clst_fsops}" \ -- 2.26.2