diff options
author | Huangbin Zhan <zhanhb88@gmail.com> | 2020-06-04 21:49:54 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-06-27 00:19:13 +0200 |
commit | fed9bfbfeb84a15c198138a2015d001f82e480d4 (patch) | |
tree | 05c2a656ece6882c073bbda145e1b1b9aee0f161 | |
parent | f3cb1636abeaba5a753d70592d05541ad929daeb (diff) | |
download | upstream-fed9bfbfeb84a15c198138a2015d001f82e480d4.tar.gz upstream-fed9bfbfeb84a15c198138a2015d001f82e480d4.tar.bz2 upstream-fed9bfbfeb84a15c198138a2015d001f82e480d4.zip |
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>
-rwxr-xr-x | package/base-files/files/sbin/sysupgrade | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index abd34bdcfb..ca2eb298dc 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -127,7 +127,7 @@ list_changed_conffiles() { list_conffiles | while read file csum; do [ -r "$file" ] || continue - echo "${csum} ${file}" | sha256sum -sc - || echo "$file" + echo "${csum} ${file}" | busybox sha256sum -sc - || echo "$file" done } |