我们使用packer.io创建自动Ubuntu模板。这对于Ubuntu20.04来说很好,但是我很难让它与22.04一起工作。一切都很好,但是当启动时我得到了消息。
Confirmation required to continue
Add 'autoinstall' to your kernel command to avoid this
Continue with auto install? (yes|no)当输入“是”时,一切都如预期的那样工作。这是packer.io配置中的相关行:
"cd_files": ["./cust//http/user-data", "./cust/http/meta-data"],
"cd_label": "cidata",
"boot_wait": "2s",
"boot_command": [
"<enter><wait2><enter><wait><f6><esc><wait>",
" autoinstall<wait2> ds=nocloud;",
"<wait><enter>"
]因此,正如您所看到的,autoinstall参数就在那里(在20.04中,它的工作方式与此完全相同。)有人想起来了吗?谢谢。
发布于 2022-05-06 20:37:20
我还没有看到boot_command示例是如何实现的,而我在网上找到的其他示例实际上可以编辑内核参数。
我使用它来绕过它,这样默认的引导命令就在linux行中添加了autoinstall参数:
boot_command = [
"e<down><down><down><end>",
" autoinstall ds=nocloud;",
"<F10>",
]https://askubuntu.com/questions/1404491
复制相似问题