INNER CODE UNIT · Go
main
container2wasm/container2wasm · cmd/create-spec/main.go:34
func main() {
var (
debug = flag.Bool("debug", false, "enable debug print on boot")
debugInit = flag.Bool("debug-init", false, "enable debug print during init")
imageConfigPath = flag.String("image-config-path", "/oci/image.json", "path to image config used by init during runtime")
runtimeConfigPath = flag.String("runtime-config-path", "/oci/spec.json", "path to runtime spec config used by init during runtime")
imageRootfsPath = flag.String("rootfs-path", "/oci/rootfs", "path to rootfs used as overlayfs lowerdir of container rootfs")
noVmtouch = flag.Bool("no-vmtouch", false, "do not perform vmtouch")
externalBundle = flag.Bool("external-bundle", false, "provide bundle externally during runtime")
noBinfmt = flag.Bool("no-binfmt", false, "do not install binfmt")
)
flag.Parse()
args := flag.Args()
imgDir := args[0]
platform := args[1]
rootfs := args[2]
if !*externalBundle {