m/installer/install: move from osbase/build/mkimage/osimage
Move the package osbase/build/mkimage/osimage to
metropolis/installer/install. The package contains "metropolis" in
various strings, so it fits better in //metropolis than in //osbase.
The parent package mkimage no longer exists.
The rename also removes the name clash with osbase/oci/osimage.
Change-Id: Ia228ab94c937f4c7a5b6eb1fcc77993a594d64b6
Reviewed-on: https://review.monogon.dev/c/monogon/+/4296
Tested-by: Jenkins CI
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
diff --git a/cloud/agent/install.go b/cloud/agent/install.go
index e212d9a..949a9a7 100644
--- a/cloud/agent/install.go
+++ b/cloud/agent/install.go
@@ -18,10 +18,10 @@
apb "source.monogon.dev/cloud/agent/api"
npb "source.monogon.dev/osbase/net/proto"
+ metropolisInstall "source.monogon.dev/metropolis/installer/install"
"source.monogon.dev/osbase/blockdev"
- "source.monogon.dev/osbase/build/mkimage/osimage"
"source.monogon.dev/osbase/efivarfs"
- ociosimage "source.monogon.dev/osbase/oci/osimage"
+ "source.monogon.dev/osbase/oci/osimage"
"source.monogon.dev/osbase/oci/registry"
"source.monogon.dev/osbase/structfs"
"source.monogon.dev/osbase/supervisor"
@@ -80,7 +80,7 @@
return fmt.Errorf("failed to fetch OS image: %w", err)
}
- osImage, err := ociosimage.Read(image)
+ osImage, err := osimage.Read(image)
if err != nil {
return fmt.Errorf("failed to fetch OS image: %w", err)
}
@@ -106,8 +106,8 @@
return fmt.Errorf("failed to open root device: %w", err)
}
- installParams := osimage.Params{
- PartitionSize: osimage.PartitionSizeInfo{
+ installParams := metropolisInstall.Params{
+ PartitionSize: metropolisInstall.PartitionSizeInfo{
ESP: 384,
System: 4096,
Data: 128,
@@ -120,7 +120,7 @@
Output: rootDev,
}
- be, err := osimage.Write(&installParams)
+ be, err := metropolisInstall.Write(&installParams)
if err != nil {
return err
}