1. vim local.conf EXTRA_IMAGE_FEATURES += "read-only-rootfs" IMAGE_FSTYPES += "live" IMAGE_INSTALL += "dhcp-client" MACHINE = "qemux86-64" 2. bitbake core-image-sato 3. start qemu with iso image: $ qemu-system-x86_64 -nographic -boot d -drive file=core-image-sato-qemux86.iso Click-->Serial console boot ... /sbin/dhclient-script: line 30: /etc/resolv.conf.dhclient: Read-only file system chmod: cannot access '/etc/resolv.conf.dhclient': No such file or directory /sbin/dhclient-script: line 41: /etc/resolv.conf.dhclient: Read-only file system mv: cannot stat '/etc/resolv.conf.dhclient': No such file or directory done. ...
In read-only file system, '/etc' is on the readonly partition, and '/etc/resolv.conf' is symlinked to a separate writable partition. In this situation, we should use shell variable to instead of the temp file '/etc/resolv.conf.dhclient'.
Merged into master: From OE-Core rev: df793f4356b411cbb92445c4559c9b21eb6d99fc