diff options
author | Gordon GECOS <u@adam> | 2023-11-22 17:42:07 -0500 |
---|---|---|
committer | Gordon GECOS <u@adam> | 2023-11-22 17:46:25 -0500 |
commit | 198b40c70815899a67c412e67ffe033b46ec80f0 (patch) | |
tree | 180342c55ca6a61d4d1ee8638961d23cfaa57588 /src/partvi | |
parent | e015b8cbe957a1913f178dc5e4ba166972f79320 (diff) |
the cleaner i make it, the cleaner it gets
Diffstat (limited to 'src/partvi')
-rwxr-xr-x | src/partvi | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -84,8 +84,9 @@ build_partition_image() | |||
84 | case "$type" in | 84 | case "$type" in |
85 | dm-verity-hashes|dm-verity-data) | 85 | dm-verity-hashes|dm-verity-data) |
86 | require_var data_path | 86 | require_var data_path |
87 | require_exists "$data_path" "$data_path".verity "$data_path".verity.log | 87 | data_verity_path=../_build/${data_path##*/}.verity |
88 | root_hash=$(get_root_hash "$data_path".verity.log) | 88 | require_exists "$data_path" "$data_verity_path" "$data_verity_path".log |
89 | root_hash=$(get_root_hash "$data_verity_path".log) | ||
89 | [ ${#root_hash} = 64 ] | 90 | [ ${#root_hash} = 64 ] |
90 | ;; | 91 | ;; |
91 | *) | 92 | *) |
@@ -108,7 +109,7 @@ build_partition_image() | |||
108 | dm-verity-hashes) | 109 | dm-verity-hashes) |
109 | partuuid=${root_hash:32:32} | 110 | partuuid=${root_hash:32:32} |
110 | set_var partuuid | 111 | set_var partuuid |
111 | cp -f -T --reflink "$data_path".verity "$builddir"/"$partuuid" | 112 | cp -f -T --reflink "$data_verity_path" "$builddir"/"$partuuid" |
112 | ln -sfT "$partuuid" "$tmp" | 113 | ln -sfT "$partuuid" "$tmp" |
113 | ;; | 114 | ;; |
114 | esac | 115 | esac |