Skip to content

Commit 4610dbc

Browse files
committed
Make image self replicating
Let's allow replicating the image to another device by adding CopyBlocks=auto to the usr, usr-verity and esp partitions. We don't add it to the usr-verity-sig partition as CopyBlocks=auto is not supported for usr-verity-sig partitions yet. This isn't a problem as we don't rely on the usr-verity-sig partition yet as the usrhash= is included in the kernel command line instead.
1 parent 5c0aa54 commit 4610dbc

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

mkosi.extra/usr/lib/repart.d/00-esp.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
[Partition]
44
Type=esp
5+
CopyBlocks=auto

mkosi.extra/usr/lib/repart.d/11-usr-verity.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
[Partition]
44
Type=usr-verity
55
Label=%M_%A_verity
6+
CopyBlocks=auto

mkosi.extra/usr/lib/repart.d/12-usr.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ Label=%M_%A
66
SizeMinBytes=5G
77
SizeMaxBytes=20G
88
Weight=2000
9+
CopyBlocks=auto

0 commit comments

Comments
 (0)