-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osmet: efficient packing/unpacking of CoreOS metal images
Introduce a new `osmet` command with two primary subcommands: `pack` and `unpack`. Together, these allow offline bare metal installation of CoreOS images while only slightly increasing the size of the initramfs. The `pack` subcommand takes as input a block device of a CoreOS metal image and the expected checksum to match. It mounts the root partition from that device and generates a smaller version of the metal image itself with the OSTree objects "punched out" (this is called the "punched image" in the code). The command outputs this smaller version as well as a lookup table of where the OSTree objects belonged into an "osmet" binary file. The `unpack` subcommand takes as input an osmet binary file and a path to an OSTree repo and reconstrust the metal image, bit for bit. This command is more for testing in practice. The following patch will teach the `install` command to use the osmet path by default, which is how users will interact with this.
- Loading branch information
Showing
13 changed files
with
1,937 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.