diff options
author | Frank Zago <fzago@cray.com> | 2017-06-22 17:21:49 -0500 |
---|---|---|
committer | Frank Zago <fzago@cray.com> | 2017-11-22 11:11:15 -0600 |
commit | 65e51618bc742a77a5bdf5c1ea36740bf46edb28 (patch) | |
tree | ba6af14a78f9752a69eacdc56234d6158a1a2bf5 | |
parent | c44d06459ba7ecb1f2c3b994ef6685ae2bdfc8fc (diff) | |
download | virtme-65e51618bc742a77a5bdf5c1ea36740bf46edb28.tar.gz |
Add resolv.conf path for Debian
On Ubuntu, the real resolv.conf is in /run/resolvconf, not
/run/NetworkManager, so that create that path in the VM as well.
Signed-off-by: Frank Zago <fzago@cray.com>
-rwxr-xr-x | virtme/guest/virtme-udhcpc-script | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/virtme/guest/virtme-udhcpc-script b/virtme/guest/virtme-udhcpc-script index ae2eb66..d9876d5 100755 --- a/virtme/guest/virtme-udhcpc-script +++ b/virtme/guest/virtme-udhcpc-script @@ -13,8 +13,10 @@ elif [[ "$1" == "bound" ]]; then ip route add default via "$router" dev "$interface" if [[ -n "$dns" ]]; then # A lot of systems will have /etc/resolv.conf symlinked to - # /run/NetworkManager/something_or_other. Create the directory. + # /run/NetworkManager/something_or_other. Debian symlinks to /run/resolvconf. + # Create both directories. install -d /run/NetworkManager + install -d /run/resolvconf echo -e "# Generated by virtme-udhcpc-script\n\nnameserver $dns" \ >/etc/resolv.conf |