diff options
| author | Yoann Congal <yoann.congal@smile.fr> | 2024-03-05 16:27:59 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-03-05 11:02:04 -0800 |
| commit | e317b01690b9f5c1a98e9c8a70097d0db6f0cb09 (patch) | |
| tree | 584ad57b635224a31a7370b804a54daf85ec530b | |
| parent | 6757155f09a275771f26c209ad4559f152d7b7da (diff) | |
| download | meta-openembedded-e317b01690b9f5c1a98e9c8a70097d0db6f0cb09.tar.gz | |
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 <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb | 2 |
1 files changed, 1 insertions, 1 deletions
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() { | |||
| 34 | cp orig/* . | 34 | cp orig/* . |
| 35 | 35 | ||
| 36 | for config in ${PACKAGECONFIG_CONFARGS}; do | 36 | for config in ${PACKAGECONFIG_CONFARGS}; do |
| 37 | if [[ ${config} == "enable_getty" ]]; then | 37 | if [ "${config}" = "enable_getty" ]; then |
| 38 | echo "# generated by bitbake recipe ${PN}" >> ${S}/inittab | 38 | echo "# generated by bitbake recipe ${PN}" >> ${S}/inittab |
| 39 | for console in "${SERIAL_CONSOLES}"; do | 39 | for console in "${SERIAL_CONSOLES}"; do |
| 40 | param=$(echo ${console} | sed s/\;/\ /g) | 40 | param=$(echo ${console} | sed s/\;/\ /g) |
