summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Luca Stefani <luca.stefani.ge1@gmail.com> 2025-02-08 12:09:34 +0100
committer Luca Stefani <luca.stefani.ge1@gmail.com> 2025-02-11 11:45:30 +0100
commit9235f4c4c3268e45082574b4f7c6835fcff7ec61 (patch)
tree15001e2fd97e4ad63c10ed2348622fddf54b48ad /filesystem/filesystem.go
parent328b0a755398aaaf17a7a6474aeb065b847afb0d (diff)
Ensure AVB rollback_index_location >= 1
Index 0 is reserved for the vbmeta partition. This works even for chained vbmeta partitions as the "father" index location is used instead of the one bundled within the image description. Test: aosp_arm64; m --soong-only Change-Id: Ibb033878e4e56e77b1621a32ba1f2ba7d8ceeedd
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 0ce31b293..9f2b239a0 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -131,7 +131,7 @@ type FilesystemProperties struct {
// The index used to prevent rollback of the image. Only used if use_avb is true.
Rollback_index *int64
- // Rollback index location of this image. Must be 0, 1, 2, etc.
+ // Rollback index location of this image. Must be 1, 2, 3, etc.
Rollback_index_location *int64
// Name of the partition stored in vbmeta desc. Defaults to the name of this module.