m/n/c/update: auto-repair preloader environment
On every successful boot this checks the correctness of the preloader
as well as the EFI boot entries. If anything is wrong, it automatically
recreates the affected state. This also gives us a way
to update the A/B preloader.
Change-Id: I72137de2e3803e72a99a8397d2bfa818314229e5
Reviewed-on: https://review.monogon.dev/c/monogon/+/2413
Tested-by: Jenkins CI
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
diff --git a/metropolis/node/core/update/BUILD.bazel b/metropolis/node/core/update/BUILD.bazel
index 3be122e..bc5561a 100644
--- a/metropolis/node/core/update/BUILD.bazel
+++ b/metropolis/node/core/update/BUILD.bazel
@@ -3,6 +3,9 @@
go_library(
name = "update",
srcs = ["update.go"],
+ embedsrcs = [
+ "//metropolis/node/core/abloader", #keep
+ ],
importpath = "source.monogon.dev/metropolis/node/core/update",
visibility = ["//visibility:public"],
deps = [