Skip to content

Disable firmware auto-inclusion and add initrd safety check - #1

Open
Reonarudo wants to merge 1 commit into
Sky1-Linux:mainfrom
Reonarudo:fix/firmware-autoinclude-and-initrd-check
Open

Disable firmware auto-inclusion and add initrd safety check#1
Reonarudo wants to merge 1 commit into
Sky1-Linux:mainfrom
Reonarudo:fix/firmware-autoinclude-and-initrd-check

Conversation

@Reonarudo

@Reonarudo Reonarudo commented Feb 8, 2026

Copy link
Copy Markdown

Summary

  • Disable --firmware-binary and --firmware-chroot in auto/configfirmware-qcom-soc in Debian sid (20260110-1) depends on firmware-qcom-dsp, causing lb build to fail with 1000+ unresolved dependencies (including initramfs-tools). Since sky1-firmware already provides the hardware-specific firmware for CIX Sky1 SoC, there's no need for live-build to auto-install every firmware package from Debian's non-free-firmware section.
  • Add initrd existence check in build-image.sh — if the chroot is broken (e.g. from a failed lb build), build-image.sh would previously produce a disk image with a GRUB config referencing a non-existent initrd.img, resulting in an unbootable image. Now it aborts with a clear error.

Context

When building with ./scripts/build.sh xfce developer image clean, the build fails during lb build because the Debian sid package resolver cannot satisfy firmware-qcom-soc → firmware-qcom-dsp. The chroot ends up partially built (kernel installed but no initramfs-tools), and build-image.sh still runs because the chroot directory exists, producing a broken ~121MB image that fails at GRUB with:

error: fs/fshelp.c:find_file:260:file '/boot/initrd.img-6.18.8-sky1' not found.

Test plan

  • Clean build with ./scripts/build.sh xfce developer image clean succeeds
  • Built image has initrd.img-* in /boot/
  • Image boots correctly on O6N hardware
  • If initrd is artificially removed from chroot, build-image.sh aborts with clear error

firmware-qcom-soc in Debian sid (20260110-1) depends on
firmware-qcom-dsp which doesn't exist yet, causing lb build to fail
with 1000+ unresolved dependencies. Since sky1-firmware already
provides the hardware-specific firmware needed for CIX Sky1 SoC,
disable live-build's automatic firmware inclusion to avoid breakage
from transient Debian sid dependency issues.

Also add a check in build-image.sh to abort with a clear error if
initrd.img is missing, preventing silently broken images.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant