Skip to content

Commit

Permalink
Update Verity hash for both UKI and GRUB.
Browse files Browse the repository at this point in the history
  • Loading branch information
liulanze committed Jan 8, 2025
1 parent f33af7e commit 8dcc866
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolkit/tools/pkg/imagecustomizerlib/imagecustomizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,9 @@ func customizeVerityImageHelper(buildDir string, baseConfigPath string, config *
if err != nil {
return fmt.Errorf("failed to update kernel cmdline arguments for verity:\n%w", err)
}
/*
} else {
*/
// UKI is not enabled, update grub.cfg as usual.
err = updateGrubConfigForVerity(rootfsVerity, rootHash, grubCfgFullPath, partIdToPartUuid, diskPartitions,
rootHashSignatureArgument, requireRootHashSignatureArgument, bootPartition.Uuid)
Expand Down

0 comments on commit 8dcc866

Please sign in to comment.