make_rootfs.sh: Fix symlink to /etc/resolv.conf

Resolve failure in name resolution for Ubuntu images.
Create a symbolic link of /etc/resolv.conf that points to:
/run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

Signed-off-by: Leon Anavi <leon@anavi.org>
This commit is contained in:
Leon Anavi 2019-03-05 12:20:12 +02:00
parent 5a9c4bf518
commit a1d895a815

@ -376,7 +376,7 @@ EOF
rm -f "$DEST/second-phase"
rm -f "$DEST/etc/resolv.conf"
rm -f "$DEST"/etc/ssh/ssh_host_*
do_chroot ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
do_chroot ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
;;
*)
;;