Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/user/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,9 @@ Required attributes:
- `ops` (operation list): Build the root filesystem layer; passed on to `image.layer`.
- `definitions` (list of `image.partition()` descriptors): Partition layout; `image.DEFAULT_ROOT_PARTITIONS`
and `image.usr_verity_partitions(signed, esp)`, with or without a verity signature partition and an ESP,
are reusable conventional layouts. A bootable disk needs system partitions. A partition label can't
are reusable conventional layouts. `image.verity_partitions(data, signed)` returns the partition `data`
followed by its verity hash partition and, with `signed`, its verity signature partition. `data` needs
`verity = "data"` and its partition type as `verity_match_key`. A bootable disk needs system partitions. A partition label can't
contain `%`, because repart would expand it as a specifier from the build box rather than from the image.
`image.partition()` takes the algorithm in `compression` and its level in `compression_level`. A partition
is only compressed when compression is on (see "Compression").
Expand Down
2 changes: 2 additions & 0 deletions image/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ load(
"RootHashInfo",
"partition",
"usr_verity_partitions",
"verity_partitions",
)
load(":extension.bzl", "ExtensionInfo")
load(
Expand Down Expand Up @@ -95,6 +96,7 @@ image = struct(
# Conventional partition layouts.
DEFAULT_ROOT_PARTITIONS = DEFAULT_ROOT_PARTITIONS,
usr_verity_partitions = usr_verity_partitions,
verity_partitions = verity_partitions,
COMPRESSIONS = COMPRESSIONS,
DISK_FORMATS = DISK_FORMATS,
# Providers.
Expand Down
Loading