Skip to content

OCI file mounts are not extracted from Unikraft initrd #985

Description

@kastakhov

Description

CopyFileMountsToInitrd appends OCI bind mounts as a second CPIO archive. Unikraft stops at the TRAILER!!! record in the original archive, so the appended files are not extracted.

This makes Kubernetes-mounted ConfigMaps, Secrets, and /etc/resolv.conf unavailable inside an initrd-based Unikraft guest.

System info

  • urunc: v0.7.0 and main (3395292)
  • Arch: amd64
  • VMM: QEMU
  • Unikernel: Unikraft

Steps to reproduce

  1. Run an initrd-based Unikraft workload with an OCI file bind mount, for example a Kubernetes ConfigMap key mounted with subPath.
  2. Read the mounted path from the guest.

Logs / output

The mounted path is absent in the guest. Inspecting the generated initrd shows the original TRAILER!!! before the appended mount records. Merging the records into the original CPIO archive makes the same mounted files visible.

LLM usage

OpenAI Codex (GPT-5) assisted with reviewing the implementation and drafting this report. I reviewed the final content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions