Bootc - Boot with custom kernel

Hi! Thank you for working on bootc. I’m new to bootc and I was able to create my own image based on bootc tier-1 base image. It’s almost the same, but I’m using my custom kernel. I struggle to boot it when using my custom kernel.

Do you have some idea where could be the problem? I’m attaching the image of the boot and failed ostree-prepare-root.service. My kernel works fine on non-ostree based systems. Is there something “special” I should do in my kernel package?

Thank you for your answer, I’m stuck at this point for few weeks now…

Full “/run/initramfs/rdsosreport.txt” log: Bootc - system boot · GitHub

How do you install the kernel in you image? Can you share the Containerfile?

I’m doing it using rpm-ostree and building it using bootc-image-builder. Do you see any problem in this workflow? So I don’t have any Containerfile. My kernel.rpm is part of the repo I added to the tier1.

rpm-ostree compose image --initialize --format=ociarchive tier1.yaml bootc.ociarchive
podman image load --input=bootc.ociarchive
podman tag 0e3bbc2 bootcos:0.1

podman run \
    --rm \
    -it \
    --privileged \
    --pull=newer \
    --security-opt label=type:unconfined_t \
    -v $(pwd)/config.toml:/config.toml:ro \
    -v $(pwd)/output:/output \
    -v /var/lib/containers/storage:/var/lib/containers/storage \
    quay.io/centos-bootc/bootc-image-builder:latest \
    --type anaconda-iso \
    --local \
    localhost/bootcos:0.1

I’m building the centos9 base image from: Files · c9s · Red Hat / centos-stream / containers / bootc · GitLab
My only change is the custom kernel.rpm. I also tried centos10 or newest fedora with the same result.

Do you have CONFIG_EROFS_FS in your kernel?

No, I did not have CONFIG_EROFS_FS enabled in my kernel a that was the problem. Thank you.