Recent optimization causes build failures when using squashfs

A recent change in meta-mender causes build failure when ARTIFACTIMG_FSTYPE is set the squashfs:

| + echo '### End of contents of wks file ###'
| ### End of contents of wks file ###
| + outimgname=/builds/sentinel-c/os/poky/build/tmp/work/intel_corei7_64-sentinelc-linux/chinook-image/1.0-r0/deploy-chinook-image-image-complete/chinook-image-intel-corei7-64-20211208201418.biosimg
| + wicout=/builds/sentinel-c/os/poky/build/tmp/work/intel_corei7_64-sentinelc-linux/chinook-image/1.0-r0/deploy-chinook-image-image-complete/chinook-image-intel-corei7-64-20211208201418-biosimg
| + BUILDDIR=/builds/sentinel-c/os/poky/build
| + wic create /builds/sentinel-c/os/poky/build/tmp/work/intel_corei7_64-sentinelc-linux/chinook-image/1.0-r0/mender-biosimg.wks --vars /builds/sentinel-c/os/poky/build/tmp/sysroots/intel-corei7-64/imgdata/ -e chinook-image -o /builds/sentinel-c/os/poky/build/tmp/work/intel_corei7_64-sentinelc-linux/chinook-image/1.0-r0/deploy-chinook-image-image-complete/chinook-image-intel-corei7-64-20211208201418-biosimg/
| INFO: Creating image(s)...
| 
| ERROR: It's not possible to create empty squashfs partition 'None'

For now, my workaround is to revert this commit in meta-mender:

cfdeb3d1 Avoid populating rootfs partition B to save space when compressing.

@cveilleux thanks for the report and the finding!

Ticket here

Hey @cveilleux, can you try the fix suggested in MEN-5285: Avoid empty partitions for squashfs. Doesn't support them. by kacf · Pull Request #1559 · mendersoftware/meta-mender · GitHub ?

1 Like

@kacf I have applied MEN-5285: Avoid empty partitions for squashfs. Doesn't support them. by kacf · Pull Request #1559 · mendersoftware/meta-mender · GitHub on top of mender’s dunfell branch and removed the revert of cfdeb3d1

The build works fine now, it fixes the problem.

Thanks!

1 Like

Great, thanks for confirming!