base-files: upgrade: use zcat command provided by busybox
authorChuck Fan <fanck0605@qq.com>
Tue, 9 Mar 2021 09:42:57 +0000 (17:42 +0800)
committerPaul Spooren <mail@aparcar.org>
Mon, 21 Jun 2021 00:19:54 +0000 (14:19 -1000)
commitd374e2cdb499b2a4282d84f95709b9a40d88a995
tree9170a312d640c5c0a2904cbb3461d9f15bf38fad
parentbffee5ea192386ffeac81e7b40e9d58a93b85db8
base-files: upgrade: use zcat command provided by busybox

Calling `switch_to_ramfs()` will not copy the gzip executable
(/bin/gzip) to ramfs, but `/bin/zcat` will call `/bin/gzip` when
package gzip is installed, instead of the busybox-supplied zcat.
This will cause `zcat` to fail to find `gzip`, then cause the
sysupgrade to fail. Adding the `busybox` prefix here will solve
the problem.

Signed-off-by: Chuck Fan <fanck0605@qq.com>
package/base-files/files/lib/upgrade/common.sh