How to build bootable Linux image for running just a Golang simple app or simple web server?

huangapple go评论95阅读模式
英文:

How to build bootable Linux image for running just a Golang simple app or simple web server?

问题

可以使用Golang脚本来完成所有的工作,包括在Windows上运行。甚至可以使用现成的镜像来运行Golang简单应用程序。类似于:使用Go构建微型Linux操作系统(此文章未提供详细信息)。

谢谢您的帮助。

英文:

Is it possible to use Golang script to do all the job?
Preferably from windows. even using ready-made images for running Golang simple app will be good.
Similar to: Tiny Linux OSes with Go (This post not provided details)

Thanks in Advance for your help.

答案1

得分: 0

创建可启动的步骤包括3个步骤:

格式化卷:

将预配置的iso复制到卷:

在卷上设置引导标志:

不幸的是,我对goLang不熟悉...你可以使用本地shell完成所有操作,并将其包装在syscall中,但这似乎不是一个很好的答案。

英文:

Creating a bootable consists of 3 steps:

Formatting the volume:

Copying a preconfigured iso to the volume:

Set boot flags on volume:

Unfortunately I am not fluent in goLang... You could do it all with your local shell and wrap that up in syscalls but that hardly feels like an answer.

huangapple
  • 本文由 发表于 2016年4月9日 14:47:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/36513648.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定