我正在为yocto构建的嵌入式设备处理一个自定义Linux映像。除了ifup/ifdown的接口配置之外,它没有网络管理。/etc/rupv.conf创建dhcp (dhcpcd),并且系统没有任何额外的软件来管理这些文件(例如resolvconf或dnsmasq)。
# Generated by dhcpcd from eth0.dhcp
# /etc/resolv.conf.head can replace this line
domain routername.home
nameserver 192.168.0.1
有了这个设置,就可以动态地更新/etc/rupv.conf,并保持更新了
我正在写一个遵循结构的YAML文件。
我的确切代码是:
# This is an appspec.yml template file for use with AWS CodeDeploy.
# The lines in this template starting with the hashtag symbol are
# instructional comments and can be safely left in the file or
# ignored.
# For help completing this file, see the "AppSpec File