Wind River Support Network

HomeDefectsLIN1018-6400
Fixed

LIN1018-6400 : initramfs-framework recipe contains bashism

Created: Jul 2, 2020    Updated: Dec 6, 2020
Resolved Date: Oct 22, 2020
Found In Version: 10.18.44.17
Fix Version: 10.18.44.20
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Build & Config

Description

This bug refers to recipe _oe-core/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb_

The _==_ bashism used in the _if [ "${VIRTUAL-RUNTIME_base-utils}" == "busybox" ]_ string comparison will lead to an error at do_install, if you have
dash as shell interpreter.

The recipe doesn't fail to build but if will fail to install mdev file to be later packaged.

Workaround

Replace _==_ with _=,_ which is the standard and is compatible with both bash and dash

Steps to Reproduce

Build with dash instead of bash as a shell interpreter
Live chat
Online