aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/kernel.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-12 15:19:57 +0900
committerOphestra <cat@gensokyo.uk>2026-05-12 15:19:57 +0900
commit9f8fafa39b9e737dfd5a7b1f7920d51f3742f2b8 (patch)
tree65b4d31f85b8b59d6ab76217e9294b31f19afe1f /internal/rosa/kernel.go
parent6643cfbeee181ee1bd543e2b3783bb5a8c01ad13 (diff)
internal/rosa: measure kernel headers
This makes version bumps robust and much less tedious. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/kernel.go')
-rw-r--r--internal/rosa/kernel.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/rosa/kernel.go b/internal/rosa/kernel.go
index 42fcbdc4..b221345c 100644
--- a/internal/rosa/kernel.go
+++ b/internal/rosa/kernel.go
@@ -29,8 +29,10 @@ func init() {
}
func (t Toolchain) newKernelHeaders() (pkg.Artifact, string) {
+ const checksum = "lCmBNcMeUmXifg0vecKOPy3GAaFcJSmOPnf3wit9xYTDSTsFADPt1xxUFfmTn1fD"
return t.NewPackage("kernel-headers", kernelVersion, kernelSource, &PackageAttr{
- Flag: TEarly,
+ Flag: TEarly,
+ KnownChecksum: new(mustDecode(checksum)),
Paths: []pkg.ExecPath{
// updated manually for API changes