The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header.
To mitigate this problem, the original message has been wrapped automatically by the mailing list software.
--- Begin Message ---there you go: root@OpenWrt:/tmp# sysupgrade -v openwrt-brcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz Reading partition table from bootdisk... Reading partition table from image... Saving config files... boot/config.txt etc/config/dhcp etc/config/dropbear etc/config/firewall etc/config/network etc/config/system etc/config/wireless etc/dropbear/dropbear_rsa_host_key etc/group etc/hosts etc/inittab etc/opkg/keys/0b26f36ae0f4106d etc/opkg/keys/1035ac73cc4e59e3 etc/opkg/keys/5151f69420c3f508 etc/opkg/keys/72a57f2191b211e0 etc/opkg/keys/792d9d9b39f180dc etc/opkg/keys/9ef4694208102c43 etc/opkg/keys/b2d571e0880ff617 etc/opkg/keys/b5043e70f9a75cde etc/opkg/keys/c10b9afab19ee428 etc/opkg/keys/dace9d4df16896bf etc/opkg/keys/dd6de0d06bbd3d85 etc/opkg/keys/f94b9dd6febac963 etc/passwd etc/profile etc/rc.local etc/shadow etc/shells etc/sysctl.conf Commencing upgrade. Closing all shell sessions. { "error": { "message": "Firmware image couldn't be validated" } } Command failed: Unknown error root@OpenWrt:/tmp# ubus monitor & root@OpenWrt:/tmp# -> d3e9aa79 #00000003 status: {"status":0} root@OpenWrt:/tmp# sysupgrade -v openwrt-brcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz Reading partition table from bootdisk... Reading partition table from image... Saving config files... boot/config.txt etc/config/dhcp etc/config/dropbear etc/config/firewall etc/config/network etc/config/system etc/config/wireless etc/dropbear/dropbear_rsa_host_key etc/group etc/hosts etc/inittab etc/opkg/keys/0b26f36ae0f4106d etc/opkg/keys/1035ac73cc4e59e3 etc/opkg/keys/5151f69420c3f508 etc/opkg/keys/72a57f2191b211e0 etc/opkg/keys/792d9d9b39f180dc etc/opkg/keys/9ef4694208102c43 etc/opkg/keys/b2d571e0880ff617 etc/opkg/keys/b5043e70f9a75cde etc/opkg/keys/c10b9afab19ee428 etc/opkg/keys/dace9d4df16896bf etc/opkg/keys/dd6de0d06bbd3d85 etc/opkg/keys/f94b9dd6febac963 etc/passwd etc/profile etc/rc.local etc/shadow etc/shells etc/sysctl.conf Commencing upgrade. Closing all shell sessions. -> 827c4bd9 #827c4bd9 hello: {} <- 827c4bd9 #00000000 lookup: {"objpath":"system"} -> 827c4bd9 #00000000 data: {"objpath":"system","objid":177377387,"objtype":1024582224,"signature":{"board":{},"info":{},"reboot":{},"watchdog":{"frequency":5,"timeout":5,"magicclose":7,"stop":7},"signal":{"pid":5,"signum":5},"validate_firmware_image":{"path":3},"sysupgrade":{"path":3,"force":7,"backup":3,"prefix":3,"command":3,"options":2}}} -> 827c4bd9 #00000000 status: {"status":0} <- 827c4bd9 #0a92906b invoke: {"objid":177377387,"method":"sysupgrade","data":{"prefix":"/tmp/root","path":"/tmp/openwrt-brcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz","backup":"/tmp/sysupgrade.tgz","command":"/lib/upgrade/do_stage2","options":{"save_partitions":1}}} -> 06657534 #827c4bd9 invoke: {"objid":177377387,"method":"sysupgrade","data":{"prefix":"/tmp/root","path":"/tmp/openwrt-brcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz","backup":"/tmp/sysupgrade.tgz","command":"/lib/upgrade/do_stage2","options":{"save_partitions":1}},"user":"root","group":"root"} { "error": { "message": "Firmware image couldn't be validated" } } Command failed: Unknown error <- 06657534 #827c4bd9 data: {"objid":177377387,"data":{"error":{"message":"Firmware image couldn't be validated"}}} -> 827c4bd9 #0a92906b data: {"objid":177377387,"data":{"error":{"message":"Firmware image couldn't be validated"}}} <- 06657534 #827c4bd9 status: {"status":9,"objid":177377387} -> 827c4bd9 #0a92906b status: {"status":9,"objid":177377387} cat /tmp/vfi-json.log { "tests": { "fwtool_signature": true, "fwtool_device_match": true }, "valid": true, "forceable": true, "allow_backup": true } { "tests": { "fwtool_signature": true, "fwtool_device_match": true }, "valid": true, "forceable": true, "allow_backup": true } { "tests": { "fwtool_signature": true, "fwtool_device_match": true }, "valid": true, "forceable": true, "allow_backup": true } { "tests": { "fwtool_signature": true, "fwtool_device_match": true }, "valid": true, "forceable": true, "allow_backup": true } > On 31 Dec 2019, at 14:49, Petr Štetiar <yn...@true.cz> wrote: > > Petr Novák <pe...@me.com> [2019-12-31 11:03:23]: > >> root@OpenWrt:/tmp# sysupgrade -v >> openwrt-brcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz >> Reading partition table from bootdisk... >> Reading partition table from image... > > This output is from /sbin/sysupgrade calling > /usr/libexec/validate_firmware_image: > >> { >> "tests": { >> "fwtool_signature": true, >> "fwtool_device_match": true >> }, >> "valid": true, >> "forceable": true, >> "allow_backup": true >> } >> Saving config files... > > ...snip... > >> Commencing upgrade. Closing all shell sessions. > > and here should be same output from procd calling > /usr/libexec/validate_firmware_image, but it is missing as probably procd > consumes the stderr output, so probably something like this is needed: > > diff --git a/package/base-files/files/usr/libexec/validate_firmware_image > b/package/base-files/files/usr/libexec/validate_firmware_image > index f85fb9e4b435..754d53b2edfe 100755 > --- a/package/base-files/files/usr/libexec/validate_firmware_image > +++ b/package/base-files/files/usr/libexec/validate_firmware_image > @@ -62,5 +62,6 @@ json_init > json_add_boolean valid "$VALID" > json_add_boolean forceable "$FORCEABLE" > json_add_boolean allow_backup "$ALLOW_BACKUP" > +json_dump -i >> /tmp/vfi-json.log > json_dump -i > json_set_namespace $old_ns > > and then run: > > $ ubus monitor & > $ sysupgrade -v openwrt-brcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz > $ cat /tmp/vfi-json.log > > -- ynezz
--- End Message ---
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel