Closed fanck0605 closed 3 years ago
It seems from the Makefile that zcat is actually installed into /usr/libexec/ and then some kind of linking is done to make /bin/zcat point there. What does ls -la /bin/zcat
yield for you? I guess that during sysupgrade /usr/ might me unmounted, but that needs verification from someone more into it.
ping @zhanhb
IMO, the best way to solve this problem is to replace zcat with busybox zcat. https://github.com/openwrt/openwrt/pull/3940#pullrequestreview-605439894
Maintainer: @bk138
Environment:
Description:
After I installed
gzip
, the commandzcat
would actually callgzip
.However,
zcat
does not seem to work properly when it is called by the sysupgrade script /lib/upgrade/platform.sh#L52Since I am using a gzip-compressed image, the function
get_image
will call zcat to decompress the firmware, but it says/bin/zcat: exec: line 51: gzip: not found
(althoughzcat
works fine when I run it in the terminal), thus causing the entire sysupgrade process to fail.After I removed the gzip, everything works will.
Here is the sysupgrade log