m/n/b/mkimage/osimage: rename osimage.Create to osimage.Write
We aren't creating an osimage, we are writing it to a disk.
Change-Id: If3769e18dbe988556b0c607ad82b734f21637836
Reviewed-on: https://review.monogon.dev/c/monogon/+/3294
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/node/build/mkimage/osimage/osimage.go b/metropolis/node/build/mkimage/osimage/osimage.go
index 8f7ab6f..d139d6b 100644
--- a/metropolis/node/build/mkimage/osimage/osimage.go
+++ b/metropolis/node/build/mkimage/osimage/osimage.go
@@ -66,7 +66,7 @@
Data int64
}
-// Params contains parameters used by Create to build a Metropolis OS
+// Params contains parameters used by Plan or Write to build a Metropolis OS
// image.
type Params struct {
// Output is the block device to which the OS image is written.
@@ -226,8 +226,8 @@
const Mi = 1024 * 1024
-// Create writes a Metropolis OS image to a block device.
-func Create(params *Params) (*efivarfs.LoadOption, error) {
+// Write writes a Metropolis OS image to a block device.
+func Write(params *Params) (*efivarfs.LoadOption, error) {
p, err := Plan(params)
if err != nil {
return nil, err