Reference the unchanged helper's original link receipt in profile provenance

This commit is contained in:
2026-11-15 22:02:53 +01:00
parent ba43aee4a9
commit 00ecbb58ac
@@ -39,7 +39,11 @@ function RoleDigests($platformHash,$installedHash,$independentHash,$previous) {
if ((Hash $archive) -cne $old[0].qualification_sha256) { throw 'Original role provenance changed' }
$archived=Get-Content -LiteralPath $archive -Raw | ConvertFrom-Json
$build='a003dfa8cc2397a99933aceeb2d8dab51f883ab9cdf27876fbfc94a78873044c'
if ($name -ceq 'system_helper') { $build=$archived.product_pair_receipt_sha256 }
if ($name -ceq 'system_helper') {
# The old pair receipt linked the later agent and referenced the
# separately built helper. Identify the actual helper link itself.
$build='04ed34e6e850aca77c1fd4677ddb271f7ccd9492a97f5d4e00ead4c1f032f29d'
}
Record ('profile-role-'+$name) ([ordered]@{
profile='rmm.windows.trusted-os.product-role-prerequisite.v1';role=$name
binary_sha256=$bound.image_file.sha256; service=$bound.service; kernel=$bound.kernel