From e317b01690b9f5c1a98e9c8a70097d0db6f0cb09 Mon Sep 17 00:00:00 2001 From: Yoann Congal Date: Tue, 5 Mar 2024 16:27:59 +0100 Subject: [PATCH] toybox-inittab: Fix serial getty reproducibility The enable_getty test uses a bash-only syntax "[[ ... ]]". On /bin/sh==bash hosts, it enables the serial getty. On /bin/sh!=bash hosts, it does not enable it. Fix this non-reproducibility by using the standard shell "[ ... ]" syntax which should work in any POSIX shell[0]. [0]: https://www.shellcheck.net/wiki/SC3010 Signed-off-by: Yoann Congal Signed-off-by: Khem Raj --- meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb b/meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb index 603f365cf3..4cad7dce11 100644 --- a/meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb +++ b/meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb @@ -34,7 +34,7 @@ do_configure() { cp orig/* . for config in ${PACKAGECONFIG_CONFARGS}; do - if [[ ${config} == "enable_getty" ]]; then + if [ "${config}" = "enable_getty" ]; then echo "# generated by bitbake recipe ${PN}" >> ${S}/inittab for console in "${SERIAL_CONSOLES}"; do param=$(echo ${console} | sed s/\;/\ /g)