m/p/efivarfs: BootOrder fixes
This doesn't need to be a pointer as it's a slice.
There was also a bug left in here because it previously skipped over
the attributes field which we now treat separately.
Change-Id: Icc80496e9bc826ae11201f96a703fb80f97c478a
Reviewed-on: https://review.monogon.dev/c/monogon/+/1913
Tested-by: Jenkins CI
Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/metropolis/installer/main.go b/metropolis/installer/main.go
index 2515f53..d3c638a 100644
--- a/metropolis/installer/main.go
+++ b/metropolis/installer/main.go
@@ -320,7 +320,7 @@
panicf("While creating a boot entry: %v", err)
}
// Erase the preexisting boot order, leaving Metropolis as the only option.
- if err := efivarfs.SetBootOrder(&efivarfs.BootOrder{uint16(en)}); err != nil {
+ if err := efivarfs.SetBootOrder(efivarfs.BootOrder{uint16(en)}); err != nil {
panicf("While adjusting the boot order: %v", err)
}