Bug 14702 - core-image-tiny-initrams fails to boot due to missing arith feature in busybox
Summary: core-image-tiny-initrams fails to boot due to missing arith feature in busybox
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.0 M3
Assignee: Alejandro
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-01-22 21:35 UTC by Alejandro
Modified: 2022-02-02 05:23 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?.