base-files: coreutil-sha256sum breaks status code
authorHuangbin Zhan <zhanhb88@gmail.com>
Thu, 4 Jun 2020 13:49:54 +0000 (21:49 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 26 Jun 2020 22:19:13 +0000 (00:19 +0200)
commitfed9bfbfeb84a15c198138a2015d001f82e480d4
tree05c2a656ece6882c073bbda145e1b1b9aee0f161
parentf3cb1636abeaba5a753d70592d05541ad929daeb
base-files: coreutil-sha256sum breaks status code

With package "coreutil-sha256sum" installed "sysupgrade" fails to perform 'sha256sum -s' and instead returns 'invalid option -- 's''.
This is caused due to:
different syntax for a sha256sum status check ('sha256sum --status' with "coreutil-sha256sum")
'/usr/bin/sha256sum' being symlinked to '/usr/bin/gnu-sha256sum' (after installation of "coreutil-sha256sum")
"coreutil-sha256sum" package from the packages feed replaces the Busybox sha256sum
This patch restores for 'sysupgrade' the busybox call to its sha256sum applet.

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
package/base-files/files/sbin/sysupgrade