Read only compressed rootfs in raw flash?

@mirzak I am able to flash squashfs image in standalone mender.

[quote=“mirzak, post:3, topic:950”]artifcat
ArtifactReboot_Enter_50
[/quote]

I renamed your mender state scripts and run once inside rootfs and with artifact.

  1. renamed to Download_Leave_50 and kept as part of rootfs.
  2. renamed to ArtifactInstall_leave_50 and integrated with release-1.mender.
    Both made mender exit with ERRO[0007] stderr collected while running script
    please see the log for details,let me know on how to fix this issue.

DEBU[0000] statescript: timeout for executing scripts is not defined; using default of 1h0m0s seconds module=executor
INFO[0000] no public key was provided for authenticating the artifact module=installer
INFO[0000] Update Module path “/usr/share/mender/modules/v3” could not be opened (open /usr/share/mender/modules/v3: no such file or directory). Update modules will not be available module=modules
DEBU[0000] checking if device [sav530] is on compatible device list: [sav530]
module=installer
DEBU[0000] installer: successfully read artifact [name: release-1; version: 3; compatible devices: [sav530]] module=installer
.DEBU[0000] Trying to install update of size: 14036992 module=dual_rootfs_device
DEBU[0000] Active partition: ubi0_3 module=partitions
WARN[0000] Could not resolve path link: ubi0_3 Attempting to continue module=partitions
WARN[0000] Could not resolve path link: ubi0_3 Attempting to continue module=partitions
DEBU[0000] Detected inactive partition ubi0_2, based on active partition ubi0_3 module=partitions
INFO[0000] native sector size of block device /dev/ubi0_2 is 126976, we will write in chunks of 2031616 module=dual_rootfs_device
… 7% 1024 KiB
…INFO[0000] opening device /dev/ubi0_2 for writing module=block_device
INFO[0000] partition /dev/ubi0_2 size: 16887808 module=block_device
. 14% 2048 KiB
… 22% 3072 KiB
… 29% 4096 KiB
… 37% 5120 KiB
… 44% 6144 KiB
… 52% 7168 KiB
… 59% 8192 KiB
… 67% 9216 KiB
… 74% 10240 KiB
… 82% 11264 KiB
… 89% 12288 KiB
… 97% 13312 KiB
…INFO[0006] wrote 14036992/14036992 bytes of update to device /dev/ubi0_2 module=dual_rootfs_device
100% 13715 KiB
DEBU[0006] statescript: timeout for executing scripts is not defined; using default of 1h0m0s seconds module=executor
DEBU[0006] start executing script: Download_Leave_50 module=executor
ERRO[0007] stderr collected while running script /etc/mender/scripts/Download_Leave_50 [artifact_name=release-1: Download_Leave_50 was called!
] module=executor
DEBU[0007] statescript: timeout for executing scripts is not defined; using default of 1h0m0s seconds module=executor
DEBU[0007] Inactive partition: ubi0_2 module=partitions
DEBU[0007] Marking inactive partition (ubi0_2) as the new boot candidate. module=dual_rootfs_device
INFO[0007] Enabling partition with new image installed to be a boot candidate: 2 module=dual_rootfs_device
DEBU[0007] Have U-Boot variable: mender_check_saveenv_canary=0 module=bootenv
DEBU[0007] List of U-Boot variables:map[mender_check_saveenv_canary:0] module=bootenv
DEBU[0008] Marking inactive partition as a boot candidate successful. module=dual_rootfs_device

indent preformatted text by 4 spaces