metropolis: align EFI partition layout
This moves non-EFI-related data inside the ESP from under the EFI
subdirectory to the root. The data moved is never accessed from EFI and
thus shouldn't be under the EFI folder. This also aligns localstorage
with the new layout as previously it and osimage didn't agree on a
specific layout, indirectly breaking the installer.
Change-Id: I36bdc9782e181dafab40aaa85cc0b4eaf2448f6e
Reviewed-on: https://review.monogon.dev/c/monogon/+/483
Reviewed-by: Sergiusz Bazanski <serge@monogon.tech>
diff --git a/metropolis/node/installer/main.go b/metropolis/node/installer/main.go
index dc72e07..075dbb5 100644
--- a/metropolis/node/installer/main.go
+++ b/metropolis/node/installer/main.go
@@ -197,13 +197,13 @@
log.Fatalf("while mounting the installer ESP: %v", err)
}
- nodeParameters, err := os.Open("/installer/EFI/metropolis-installer/nodeparams.pb")
+ nodeParameters, err := os.Open("/installer/metropolis-installer/nodeparams.pb")
if err != nil {
log.Fatalf("failed to open node parameters from ESP: %v", err)
}
// TODO(lorenz): Replace with proper bundles
- bundle, err := zip.OpenReader("/installer/EFI/metropolis-installer/bundle.bin")
+ bundle, err := zip.OpenReader("/installer/metropolis-installer/bundle.bin")
if err != nil {
log.Fatalf("failed to open node bundle from ESP: %v", err)
}