Run mkosi.images subimage using nspawn or qemu #3150
-
I have a main image defined in I'm thinking something like:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I found a possible solution to achieve my goal of running a subimage. I "claim" the subimage as the main image by copying relevant fields from e.g.
and
Then I can run image_B in qemu:
|
Beta Was this translation helpful? Give feedback.
Yes we can't guarantee this will keep working. Unfortunately what you're asking for is not supported, mkosi will only boot the top level image, mkosi.images is intended for subimages intended for inclusion or use with the top level image that are not standalone and cannot be booted.
If you want to build multiple images that can all be booted, we recommend having two separate projects and using
mkosi -C
to boot a specific one.In…