aparcar / openwrt

Staging tree of Paul Spooren
Other
9 stars 1 forks source link

FS#973 - ar71xx: sysupgrade broken on r4354 55623a9c83 #874

Closed aparcar closed 7 years ago

aparcar commented 7 years ago

rmounce:

TP-Link Archer C7 v2 running LEDE trunk r4354 55623a9c83

Sysupgrade fails with the message "Command failed: Method not found" on the following ubus call at the end of /sbin/sysupgrade

ubus call system sysupgrade "{ \"prefix\": $(json_string "$RAM_ROOT"), \"path\": $(json_string "$IMAGE"), \"command\": $(json_string "$COMMAND") }"

Steps to reproduce:

-Checkout 55623a9c83, build a generic ar71xx NOR device and flash without saving config. -SSH in and wget a newer sysupgrade image to /tmp/ -Run sysupgrade e.g. for debugging

sh -x /sbin/sysupgrade -v /tmp/lede-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin

-Observe failure

In this case, passed arguments are ubus call system sysupgrade { "prefix": "/tmp/root", "path": "/tmp/lede-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin", "command": ". /lib/functions.sh; include /lib/upgrade; do_upgrade_stage2" }

aparcar commented 7 years ago

rmounce:

Resolved, PEBKAC. Unclean build, old version of procd (2017-03-05) built in image with r4354 sysupgrade scripts.

Workaround for those interested, cherry pick sysupgrade scripts from immediately before procd upgrade.

git checkout 8008765f1f4d03737d5aeb07bb9a9bf4d0321564 scp -r package/base-files/files/lib/upgrade root@192.168.1.1:/lib/ scp package/base-files/files/sbin/sysupgrade root@192.168.1.1:/sbin/