penguin.gen_image module¶
penguin.gen_image¶
Filesystem image generation utilities for the Penguin emulation environment.
This module provides functions for generating disk images, adding required files, and handling image creation via CLI or programmatically.
- penguin.gen_image.fakeroot_gen_image(fs, out, artifacts, proj_dir, config)[source]¶
Run image generation under fakeroot.
- Parameters:
fs (str) – Path to input filesystem tarball.
out (str) – Path to output qcow image.
artifacts (str) – Path to artifacts directory.
proj_dir (str) – Path to project directory.
config (str) – Path to config file.
- Returns:
Path to generated image.
- Return type:
str
- Raises:
Exception – If image generation fails.
- penguin.gen_image.get_mount_type(path)[source]¶
Get the filesystem type of the mount at the given path.
- Parameters:
path (str) – Path to check.
- Returns:
Filesystem type string or None.
- Return type:
str or None
- penguin.gen_image.make_image(fs, out, artifacts, config)[source]¶
Generate a new disk image from the given filesystem and configuration.
- Parameters:
fs (str) – Path to input filesystem tarball.
out (str) – Path to output qcow image.
artifacts (str or None) – Path to artifacts directory.
config (dict) – Configuration dictionary.
- Return type:
None