diff options
Diffstat (limited to 'src/partvi')
-rwxr-xr-x | src/partvi | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -207,6 +207,7 @@ create_ptable_conf() | |||
207 | partition-table) start=$((start + devsz)); return;; | 207 | partition-table) start=$((start + devsz)); return;; |
208 | efi-system-partition) typecode=C12A7328-F81F-11D2-BA4B-00A0C93EC93B ;; | 208 | efi-system-partition) typecode=C12A7328-F81F-11D2-BA4B-00A0C93EC93B ;; |
209 | dm-verity-data|dm-verity-hashes) | 209 | dm-verity-data|dm-verity-hashes) |
210 | check_for_key_only_skip || return 0 | ||
210 | case "$name" in | 211 | case "$name" in |
211 | samizdat-rootfs|samizdat-root-patch) typecode=4f68bce3-e8cd-4db1-96e7-fbcaf984b709 ;; | 212 | samizdat-rootfs|samizdat-root-patch) typecode=4f68bce3-e8cd-4db1-96e7-fbcaf984b709 ;; |
212 | samizdat-root-patch-verity) typecode=2c7357ed-ebd2-46d9-aec1-23d437ec2bf5 ;; | 213 | samizdat-root-patch-verity) typecode=2c7357ed-ebd2-46d9-aec1-23d437ec2bf5 ;; |
@@ -319,10 +320,20 @@ pee_on_table() | |||
319 | $sudo sfdisk -Y dos "$dev" < "$DOS_TABLE_FILE" || return | 320 | $sudo sfdisk -Y dos "$dev" < "$DOS_TABLE_FILE" || return |
320 | } | 321 | } |
321 | 322 | ||
323 | check_for_key_only_skip() | ||
324 | { | ||
325 | [ "$KEY_ONLY" ] || return 0 | ||
326 | case "$type" in | ||
327 | dm-verity-data|dm-verity-hashes) false ;; | ||
328 | *) true ;; | ||
329 | esac | ||
330 | } | ||
322 | 331 | ||
323 | clone_parts_to_target() | 332 | clone_parts_to_target() |
324 | { | 333 | { |
325 | f=$(readlink -e _build/"${f%.conf}") || break | 334 | |
335 | check_for_key_only_skip || return 0 | ||
336 | f=$(readlink -e _build/"${f%.conf}") || return | ||
326 | ficlonerange.py "$f" "$target" | 337 | ficlonerange.py "$f" "$target" |
327 | } | 338 | } |
328 | 339 | ||