diff options
author | Andrew Lutomirski <andy@luto.us> | 2017-11-25 06:48:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-25 06:48:57 -0800 |
commit | 45f2b58eee7615e531811f6cf48009eedeeeb6f8 (patch) | |
tree | e0676c966541bacf69427ae1a03d835c5be845e6 | |
parent | 17888c778bc84e633ee160928603fd32537772b2 (diff) | |
parent | 4816957b55da56ad51915f5e031f15d2dc552d79 (diff) | |
download | virtme-45f2b58eee7615e531811f6cf48009eedeeeb6f8.tar.gz |
Merge pull request #17 from zevweiss/resolvconf-fix
virtme-udhcpc-script: make resolv.conf world-readable.
Arguably a nicer solution would be to name the file /run/virtme/resolv.conf, but that's a different issue entirely.
-rwxr-xr-x | virtme/guest/virtme-init | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virtme/guest/virtme-init b/virtme/guest/virtme-init index bde30d2..e3b30f0 100755 --- a/virtme/guest/virtme-init +++ b/virtme/guest/virtme-init @@ -143,6 +143,7 @@ ip link set dev lo up if cat /proc/cmdline |grep -q -E '(^| )virtme.dhcp($| )'; then if [[ -f /etc/resolv.conf ]]; then tmpfile="`mktemp --tmpdir=/tmp`" + chmod 644 "$tmpfile" mount --bind "$tmpfile" /etc/resolv.conf rm "$tmpfile" fi |