-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
image-hd: implement "fill" option for partitions
When bootstrapping, it can be useful to ensure that a partition has completely known contents, especially when the partition just contains raw binary data and not a filesystem. When generating an image file, this is implicitly done already because the non-written parts of the partition(s) are implicitly zero-filled when the containing image file is extended to its final size. But when using genimage to directly populate a block device, no such implicit zero-filling is done. Add a "fill" boolean option, and use that to decide between passing the partition's size or the child image's size to insert_image(). Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
- Loading branch information
Rasmus Villemoes
committed
Feb 24, 2023
1 parent
2b9d870
commit e123753
Showing
4 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
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
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