Upgrade from openwrt-x86-64-generic-ext4-combined.img(v5.4.71-r14718-4a0688ed71) to
openwrt-x86-64-generic-ext4-combined.img(v5.4.72-r14818-237f708b3c)
will timeout and ping no answer. But upgrade with openwrt-x86-64-generic-squashfs-combined.img is OK.
And I find the reason is that https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=2dffadece9a7243a236ce7d91719787a671e23d4
Move /var/run/ubus.sock to /var/run/ubus/ubus.sock in preparation for
having ubusd run as non-root user.
sysupgrade with ext4-combined img will not apply this changes into /etc/config/rpcd.
To resolve this, you need edit /etc/config/rpcd before you do sysupgarde.
diff -Naur dfmpv2/b4/etc/config/rpcd dfmpv2/aft/etc/config/rpcd
@@ -1,6 +1,7 @@
+
config rpcd
- option socket /var/run/ubus.sock
- option timeout 30
+ option timeout '30'
+ option socket '/var/run/ubus/ubus.sock'
config login
option username 'root'
You may also do the same with files 'group' 'passwd' 'shadow'
diff -Naur dfmpv2/b4/etc/group dfmpv2/aft/etc/group
@@ -11,3 +11,5 @@
nogroup:x:65534:
dnsmasq:x:453:dnsmasq
sshd:x:22:sshd
+ntp:x:123:ntp
+ubus:x:81:ubus
diff -Naur dfmpv2/b4/etc/passwd dfmpv2/aft/etc/passwd
@@ -5,3 +5,5 @@
nobody:*:65534:65534:nobody:/var:/bin/false
dnsmasq:x:453:453:dnsmasq:/var/run/dnsmasq:/bin/false
sshd:x:22:22:sshd:/var/run/sshd:/bin/false
+ntp:x:123:123:ntp:/var/run/ntp:/bin/false
+ubus:x:81:81:ubus:/var/run/ubus:/bin/false
diff -Naur dfmpv2/b4/etc/shadow dfmpv2/aft/etc/shadow
@@ -5,3 +5,5 @@
nobody:*:0:0:99999:7:::
dnsmasq:x:0:0:99999:7:::
sshd:x:0:0:99999:7:::
+ntp:x:0:0:99999:7::
+ubus:x:0:0:99999:7::
I think the better way is to improve sysupgrade work better with ext4-combined format.