Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variants: Document the image-layout options #1896

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

zmrow
Copy link
Contributor

@zmrow zmrow commented Jan 10, 2022

Description of changes:

This adds some additional documentation to the README for the new
`image-layout` section of a variant's `Cargo.toml`.

Testing done:
Used these options in #1895 ! :)

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@zmrow zmrow requested a review from bcressey January 10, 2022 23:36
Though we've done so here for sake of demonstration, resizing the "data" disk image isn't necessary as it expands to fill the disk on boot.
`partition-plan` is the strategy used for image partitioning, with the options being "split" (the default) or "unified".
The "split" partition strategy has separate volumes for "OS" and "data", while "unified" has "OS" and "data" on a single volume.
See the documentation for the [defaults](https://github.com/bottlerocket-os/bottlerocket/blob/4cb75aea3715de3ec91cf54d9a4699e11b5f3c24/tools/buildsys/src/manifest.rs#L260) and [additional details](https://github.com/bottlerocket-os/bottlerocket/blob/4cb75aea3715de3ec91cf54d9a4699e11b5f3c24/tools/buildsys/src/manifest.rs#L76).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a markdown link instead of a GitHub "permalink". I think it will always be that particular version of the file that this link goes to.

@zmrow
Copy link
Contributor Author

zmrow commented Jan 12, 2022

^ Per @webern 's request, the above push changes the link to a markdown link rather than permalink.

variants/README.md Outdated Show resolved Hide resolved
This adds some additional documentation to the README for the new
`image-layout` section of a variant's `Cargo.toml`.
@zmrow
Copy link
Contributor Author

zmrow commented Jan 12, 2022

^ Updates the wording per @arnaldo2792

@zmrow zmrow merged commit d218567 into bottlerocket-os:develop Jan 13, 2022
@zmrow zmrow deleted the image-layout-docs branch January 13, 2022 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants