Skip to content

feat: support installer boot from USB media on Renesas xHCI hardware#686

Open
nianyush wants to merge 2 commits into
mainfrom
feat/usb-media-boot-renesas-xhci
Open

feat: support installer boot from USB media on Renesas xHCI hardware#686
nianyush wants to merge 2 commits into
mainfrom
feat/usb-media-boot-renesas-xhci

Conversation

@nianyush

@nianyush nianyush commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Enables the Palette Edge installer to boot and install from USB media on hardware that uses a Renesas xHCI (USB 3.0) host controller.

Non-FIPS path

  • Earthfile — In the base-image target, write /etc/dracut.conf.d/99-usb-media.conf with:
    hostonly="no"
    add_drivers+=" xhci_pci_renesas "
    force_drivers+=" xhci_pci_renesas "
    
    It is placed before the distro-specific dracut -f regeneration (Ubuntu ~L788, openSUSE ~L820) so xhci_pci_renesas is actually bundled into the generated initramfs. build-iso repacks the existing /boot/initrd, so the config must exist before that regeneration to take effect.
  • overlay/files-iso/boot/grub2/grub.cfg — Add pci=realloc=off to the installer menu entries to avoid PCI resource reallocation issues on affected hardware.

FIPS path

The Earthfile skips dracut regeneration for FIPS builds (the FIPS base image builds its own initramfs). So the same driver config is added in the ubuntu-fips Dockerfiles, where kairos-init -s init --fips regenerates the initramfs:

  • Add ubuntu-fips/{20.04,22.04,24.04}/99-usb-media.conf (same three lines as above).
  • COPY it into /etc/dracut.conf.d/99-usb-media.conf before the kairos-init -s init step in each FIPS Dockerfile.

Notes

  • The dracut config uses printf (Earthfile) / a static .conf file (FIPS) rather than a heredoc: Earthly's RUN lexer (VERSION 0.6) does not support shell heredocs and errors on the heredoc body. Verified with earthly ls.
  • add_drivers + force_drivers guarantee the driver is included regardless of dracut hostonly mode.

Testing

  • earthly ls ./ parses the Earthfile without errors.
  • Verified the generated 99-usb-media.conf content matches the intended dracut config.

nianyush added 2 commits July 16, 2026 08:37
Bundle the Renesas xHCI (USB 3.0) host controller driver into the
initramfs and disable PCI reallocation on the installer boot entries so
the Palette Edge installer can boot and install from USB media on
hardware using that chipset.

- Earthfile: write /etc/dracut.conf.d/99-usb-media.conf in base-image
  before the distro dracut regeneration so xhci_pci_renesas is included
  in the generated initramfs (add_drivers + force_drivers).
- grub.cfg: add pci=realloc=off to the installer menu entries.
The Earthfile skips dracut regeneration for FIPS builds, so the USB media
driver config must be added in the ubuntu-fips Dockerfiles where
kairos-init regenerates the initramfs (-s init --fips).

Add a 99-usb-media.conf (xhci_pci_renesas via add_drivers + force_drivers)
to each Ubuntu FIPS version (20.04/22.04/24.04) and COPY it into
/etc/dracut.conf.d/ before the kairos-init init step that runs dracut.
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.

2 participants