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/installer/main.go b/metropolis/installer/main.go
index 0ae7dd6..bc428a0 100644
--- a/metropolis/installer/main.go
+++ b/metropolis/installer/main.go
@@ -89,7 +89,7 @@
 	// Use the partition's name to find and return the name of its parent
 	// device. It will be excluded from the list of suitable target devices.
 	srcDev, err := sysfs.ParentBlockDevice(espDev)
-	if err != nil{
+	if err != nil {
 		return nil, fmt.Errorf("failed to fetch parent device: %w", err)
 	}
 	// Build the exclusion list containing forbidden handle prefixes.
@@ -264,9 +264,9 @@
 	installParams.Output = tgtBlockDev
 
 	// Use osimage to partition the target block device and set up its ESP.
-	// Create will return an EFI boot entry on success.
+	// Write will return an EFI boot entry on success.
 	logf("Installing to %s...", tgtBlkdevPath)
-	be, err := osimage.Create(&installParams)
+	be, err := osimage.Write(&installParams)
 	if err != nil {
 		panicf("While installing: %v", err)
 	}