-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
image-android-sparse: add option to fill holes with zeros
By default 'holes' are converted into "don't care" areas. This adds an option to fill the area with zeros instead. Signed-off-by: Michael Olbrich <[email protected]>
- Loading branch information
1 parent
9b9aa24
commit cac0528
Showing
7 changed files
with
81 additions
and
5 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
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,53 @@ | ||
image test.ext4 { | ||
ext4 { | ||
label = "mke2fs" | ||
fs-timestamp = "20000101000000" | ||
use-mke2fs = true | ||
mke2fs-conf = "mke2fs.conf" | ||
extraargs = "-U 12345678-1234-1234-1234-1234567890ab -E quotatype=" | ||
features = "^resize_inode,quota" | ||
} | ||
size = 32M | ||
} | ||
|
||
image test.hdimage { | ||
hdimage { | ||
align = 1M | ||
fill = true | ||
disk-signature = 0x12345678 | ||
} | ||
partition part1 { | ||
image = "part1.img" | ||
size = 1M | ||
partition-type = 0x83 | ||
} | ||
partition part2 { | ||
image = "test.ext4" | ||
partition-type = 0x83 | ||
sparse = false | ||
} | ||
partition part3 { | ||
image = "part1.img" | ||
size = 1M | ||
partition-type = 0x83 | ||
} | ||
partition part4 { | ||
image = "part2.img" | ||
size = 1M | ||
partition-type = 0x83 | ||
fill = true | ||
sparse = false | ||
} | ||
partition part5 { | ||
image = "part1.img" | ||
size = 1M | ||
partition-type = 0x83 | ||
} | ||
partition part6 { | ||
image = "part2.img" | ||
size = 1M | ||
partition-type = 0x83 | ||
fill = true | ||
sparse = false | ||
} | ||
} |
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