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
- Run an initrd-based Unikraft workload with an OCI file bind mount, for example a Kubernetes ConfigMap key mounted with
subPath.
- 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.
Description
CopyFileMountsToInitrdappends OCI bind mounts as a second CPIO archive. Unikraft stops at theTRAILER!!!record in the original archive, so the appended files are not extracted.This makes Kubernetes-mounted ConfigMaps, Secrets, and
/etc/resolv.confunavailable inside an initrd-based Unikraft guest.System info
3395292)Steps to reproduce
subPath.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.