Skip to content

Rockhopper-Technologies/imogen

Repository files navigation

PyPI Package latest release

Overview

Imogen is a system image generator, primarily intended for generating cloud imaged for Linux operating systems which employ kickstart files for automated installs.

The tool takes advantage of hard drive emulation enabled on most distribution ISO images, booting into Anaconda to perform an automated build with a kickstart file imbedded into the image.

For now it only supports AWS, but expect more providers in the future.

This tool is still in early development, but is being used. Please report issues. PRs welcome!

Usage

See the examples directory for configuration and kickstart examples.

To build a basic AMI for Rocky 9, make sure you have AWS credentials configured and run:

imogen -c examples/rocky-9.yaml --aws

Troubleshooting tips

Probing instance

If you need to probe the system during the build, you can use a %pre script and have it log to the console

%pre --log=/dev/tty
ls -l /sys/class/block
%end

My root partition isn't automatically growing

Check the cloud-init logs. The growpart module doesn't support LVM, so you'll need to create your own logic and run it in bootcmd