This page contains the Compute Package documentation.
Utility methods to resize, repartition, and modify disk images. Includes injection of SSH PGP keys into authorized_keys file.
Injects a ssh key and optionally net data into a disk image.
it will mount the image as a fully partitioned disk and attempt to inject into the specified partition number.
If partition is not specified it mounts the image as a single partition.
Takes a single partition represented by infile and writes a bootable drive image into outfile.
The first 63 sectors (0-62) of the resulting image is a master boot record. Infile becomes the first primary partition. If local bytes is specified, a second primary partition is created and formatted as ext2.
In the diagram below, dashes represent drive sectors. +—–+——. . .——-+——. . .——+ | 0 a| b c|d e| +—–+——. . .——-+——. . .——+ | mbr | primary partiton | local partition | +—–+——. . .——-+——. . .——+