From 198b40c70815899a67c412e67ffe033b46ec80f0 Mon Sep 17 00:00:00 2001 From: Gordon GECOS Date: Wed, 22 Nov 2023 17:42:07 -0500 Subject: the cleaner i make it, the cleaner it gets --- src/partvi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/partvi') diff --git a/src/partvi b/src/partvi index 0a24602..b202908 100755 --- a/src/partvi +++ b/src/partvi @@ -84,8 +84,9 @@ build_partition_image() case "$type" in dm-verity-hashes|dm-verity-data) require_var data_path - require_exists "$data_path" "$data_path".verity "$data_path".verity.log - root_hash=$(get_root_hash "$data_path".verity.log) + data_verity_path=../_build/${data_path##*/}.verity + require_exists "$data_path" "$data_verity_path" "$data_verity_path".log + root_hash=$(get_root_hash "$data_verity_path".log) [ ${#root_hash} = 64 ] ;; *) @@ -108,7 +109,7 @@ build_partition_image() dm-verity-hashes) partuuid=${root_hash:32:32} set_var partuuid - cp -f -T --reflink "$data_path".verity "$builddir"/"$partuuid" + cp -f -T --reflink "$data_verity_path" "$builddir"/"$partuuid" ln -sfT "$partuuid" "$tmp" ;; esac -- cgit v1.2.3