Commit 6ab44d5
committed
genimage: allow non-sparse image-less partitions not in partition table
Previously, partitions not included in a partition table were required
to always reference an image.
However, it can be useful to define such partitions without an image,
for example, for "barebox-env" or "barebox-state" regions at fixed
offsets in legacy MBR setups. These partitions are typically populated at
runtime and therefore do not need an image.
To ensure that flashing a sparse image variant results in a well-defined
state, these partitions should be explicitly filled with zeros to
overwrite any existing data.
So allow partitions not present in the partition table, without an
image, to be filled with zeros, e.g.:
partition barebox-environment {
size = 128K
in-partition-table = false
sparse = false
}
Signed-off-by: Bastian Krause <[email protected]>1 parent ff7da92 commit 6ab44d5
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | | - | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
835 | 839 | | |
836 | 840 | | |
837 | 841 | | |
| |||
0 commit comments