-
Hello,
boot script:
When I try to launch the image using qemu, I get the following kernel panic. I feel like the fact that I am not using an initramfs might be related, the ostree-prepare-root documentation makes it sound like it is necessary "This tool is designed to run in an initramfs", but other ostree documentation makes it sound like an initramfs is optional.
What I also find weird is I am able to install ostree from inside a normal debian image running in qemu and deploy, but when I start removing certain directories such as sysroot/usr and sysroot/proc and reboot I will start to get kernel panics again (my understanding is only /boot and /ostree are necessary on sysroot). A nudge in the right direction would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
ostree-prepare-root as an init process isn't gonna work, it's just not designed to be an init system. What do you plan on using for init? systemd or something else? Like even if we added the code to turn it into an init process, it's just beyond the scope of what is planned for OSTree. What you probably want to do is the equivalent of this in your init system: https://github.com/ostreedev/ostree/blob/main/src/boot/ostree-prepare-root.service |
Beta Was this translation helpful? Give feedback.
-
I managed to fix my problem. ostree-prepare-root was looking for shared libraries which are only available in the deployment itself. Compiling ostree with --with-static-compiler="gcc" fixed the issue. |
Beta Was this translation helpful? Give feedback.
I managed to fix my problem. ostree-prepare-root was looking for shared libraries which are only available in the deployment itself. Compiling ostree with --with-static-compiler="gcc" fixed the issue.