n/b/mkimage/osimage: init

Common parts of mkimage were moved to osimage.

mkimage remains in use as a frontend to osimage, with backward
compatible use semantics.

Change-Id: I08c1c44afdf7bf0c07333ab3c6bbebf53ff4d0db
Reviewed-on: https://review.monogon.dev/c/monogon/+/324
Reviewed-by: Sergiusz Bazanski <serge@monogon.tech>
diff --git a/metropolis/node/build/mkimage/osimage/BUILD.bazel b/metropolis/node/build/mkimage/osimage/BUILD.bazel
new file mode 100644
index 0000000..d9cacae
--- /dev/null
+++ b/metropolis/node/build/mkimage/osimage/BUILD.bazel
@@ -0,0 +1,15 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
+    name = "go_default_library",
+    srcs = ["osimage.go"],
+    importpath = "source.monogon.dev/metropolis/node/build/mkimage/osimage",
+    visibility = ["//visibility:public"],
+    deps = [
+        "//metropolis/pkg/efivarfs:go_default_library",
+        "@com_github_diskfs_go_diskfs//:go_default_library",
+        "@com_github_diskfs_go_diskfs//disk:go_default_library",
+        "@com_github_diskfs_go_diskfs//filesystem:go_default_library",
+        "@com_github_diskfs_go_diskfs//partition/gpt:go_default_library",
+    ],
+)