Initramfs does not provide full version of blkid
Affected images versions
v2024dev2
Background
Currently APT image fail to boot from time to time with error:
Gave up waiting for root file system device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev) ALERT! UUID=2fcde2c7-a4d6-4904-a49a-67fa71fb8a48 does not exist. Dropping to a shell! BusyBox v1.35.0 (Apertis 1:1.35.0-4+apertis1bv2024dev2b1) built-in shell (ash) Enter 'help' for a list of built-in commands.
Image have been created with using UPLOAD_ARTIFACTS=1 and SUBMIT_LAVA_JOBS=1 https://gitlab.apertis.org/infrastructure/apertis-image-recipes/-/tree/wip/wlozano/rebase-test
LAVA job https://lava.collabora.dev/scheduler/job/10515260#L6984
After investigating the root cause seems to be that blkid utility is not present in the initramfs, in its place the busybox version is used which does not support the required options.
Reproducibility
How often the issue is hit when repeating the test and changing nothing (same device, same image, etc.)?
Put the
- always
-
✅ often, but not always - rarely
Impact of bug
Randomly images generated do not boot
Root cause
describe in one line what caused the issue to give a hint to product teams whether they may be impacted or not
Outcomes
Fix in rust-coreutils: pkg/rust-coreutils!23 (merged) Remove workaround in busybox: pkg/busybox!32 (merged)
Management data
This section is for management only, it should be the last one in the description.
/cc @andrunko @em @sagar @sudarshan @wlozano
Phabricator link: https://phabricator.apertis.org/T9755