forked from microsoft/hcsshim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 4636050: update hcsshim to 43d3084
Related work items: microsoft#955, microsoft#985, microsoft#1023, microsoft#1026, microsoft#1032, microsoft#1034, microsoft#1038, microsoft#1041, microsoft#1044
- Loading branch information
Showing
172 changed files
with
16,821 additions
and
498 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# dmverity-vhd | ||
|
||
Takes an OCI image locator and an output directory and converts the layers that | ||
make up the image into a series of VHDs in the output directory. One VHD will | ||
be created per image layer. | ||
|
||
VHDs are named with the name of the layer SHA. | ||
|
||
Each layer contains | ||
[dm-verity](https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/verity.html) | ||
information that can be used to ensure the integrity of the created ext4 | ||
filesystem. All VHDs have a layout of: | ||
|
||
- ext4 filesystem | ||
- dm-verity superblock | ||
- dm-verity merkle tree | ||
- VHD footer | ||
|
||
The output is deterministic except for the UUIDs embedded in the VHD footer and | ||
the dm-verity superblock. Both UUIDs are currently seeded using a random number | ||
generator. | ||
|
||
## Example usage | ||
|
||
Create VHDs: | ||
```bash | ||
dmverity-vhd create -i alpine:3.12 -o alpine_3_12_layers | ||
``` | ||
|
||
Compute root hashes: | ||
```bash | ||
dmverity-vhd roothash -i alpine:3.12 | ||
``` |
Oops, something went wrong.