[LEDE-DEV] [PATCH] base-files: sysupgrade depends on sha256sum now

Matthias Schiffer mschiffer at universe-factory.net
Sun Mar 11 06:45:34 PDT 2018


On 03/11/2018 02:33 PM, Bjørn Mork wrote:
> commit 6ed389da85a9 ("base-files: sysupgrade: do not rely on opkg
> to list changed conffile") adds a call to sha256sum.  Make sure it
> exists.
> 
> Signed-off-by: Bjørn Mork <bjorn at mork.no>
> ---

We generally do no add dependencies for busybox applets that are enabled by
default - otherwise, we would also need to add dependencies for sed, awk,
grep, etc. When you change the busybox configuration, you are on your own,
and you should regularly check the output of scripts/diffconfig.sh when
updating your tree to catch changed defaults.

Regards,
Matthias


> You'll see this unless you select sha256sum:
> 
> root at wrt1900ac-1:~# sysupgrade -b /tmp/foo
> /sbin/sysupgrade: eval: line 1: sha256sum: not found
> /sbin/sysupgrade: eval: line 1: sha256sum: not found
> /sbin/sysupgrade: eval: line 1: sha256sum: not found
> /sbin/sysupgrade: eval: line 1: sha256sum: not found
> ..
> 
> 
>  package/base-files/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/base-files/Makefile b/package/base-files/Makefile
> index f4505d6843c4..4b668aa2da05 100644
> --- a/package/base-files/Makefile
> +++ b/package/base-files/Makefile
> @@ -39,7 +39,7 @@ endif
>  define Package/base-files
>    SECTION:=base
>    CATEGORY:=Base system
> -  DEPENDS:=+netifd +libc +procd +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:lede-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool
> +  DEPENDS:=+netifd +libc +procd +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:lede-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool + at BUSYBOX_CONFIG_SHA256SUM
>    TITLE:=Base filesystem for OpenWrt
>    URL:=http://openwrt.org/
>    VERSION:=$(PKG_RELEASE)-$(REVISION)
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20180311/4a34a91d/attachment-0001.sig>


More information about the Lede-dev mailing list