Creating bootable images
Elemental
deploymentsYou can find the examples below in the examples folder.
From standard images
Besides using the elemental-toolkit
toolchain, it’s possible to create standard container images which are consumable by the vanilla Elemental
images (ISO, Cloud Images, etc.) during the upgrade and deploy phase.
An example of a Dockerfile image can be:
We can just run docker to build the image with
The important piece is that an image needs to ship at least:
grub2
systemd
kernel
dracut
And then extract the configuration for the system using the elemental init
-command.
Customizations
All the method above imply that the image generated will be the booting one, there are however several configuration entrypoint that you should keep in mind while building the image:
- Everything under
/system/oem
will be loaded during the various stage (boot, network, initramfs). You can check here for theElemental
defaults. See00_rootfs.yaml
to customize the booting layout. /etc/cos/bootargs.cfg
contains the booting options required to boot the image with GRUB
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.