Merge pull request #346 from nitkon/master

image_builder: create /etc/resolv.conf
This commit is contained in:
Peng Tao
2019-08-22 14:39:34 +08:00
committed by GitHub

View File

@@ -391,6 +391,9 @@ create_rootfs_image() {
info "Creating empty machine-id to allow systemd to bind-mount it"
touch "${mount_dir}/etc/machine-id"
info "Creating empty resolv.conf to allow kata-agent to bind-mount it"
touch "${mount_dir}/etc/resolv.conf"
info "Unmounting root partition"
umount "${mount_dir}"
OK "Root partition unmounted"