Bug 14702

Summary: core-image-tiny-initrams fails to boot due to missing arith feature in busybox
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alejandro <alejandro>
Component: coreAssignee: Alejandro <alejandro>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 4.0 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alejandro 2022-01-22 21:35:12 UTC
When running core-image-tiny-initramfs we get greeted with the following error:

`Waiting for removable media...                                                                   
/init: line 144: syntax error: support for $((arith)) is disabled                      
[   16.222552] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200         
[   16.223613] CPU1: stopping                                                                    [   16.224400] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.14-yocto-tiny #1`

This is caused by a line in tiny's init script which tries to use shell arithmetic, I suspect this is caused by a missing feature in busybox, although its unclear why it was working before, perhaps a busybox upgrade changed defaults?.