INNER CODE UNIT · Go

newMountInfo

container2wasm/container2wasm · cmd/create-spec/main.go:541

		newMountInfo = append(newMountInfo, bootConfig.Mounts[:procfsPos+1]...)
		newMountInfo = append(newMountInfo, inittype.MountInfo{
			FSType: "binfmt_misc",
			Src:    "binfmt_misc",
			Dst:    "/proc/sys/fs/binfmt_misc",
			Cmd:    []string{"binfmt", "--install", binfmtArch},
		})
		newMountInfo = append(newMountInfo, bootConfig.Mounts[procfsPos+1:]...)
		bootConfig.Mounts = newMountInfo
	}
	return bootConfig, nil
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…