livecd-rootfs/live-build/buildd/hooks/49-empty-resolv-conf.binary
Cody Shepherd 9b1fe7a820
Fix broken DNS in buildd image builds.
Instead of injecting an empty resolv.conf with an includes.chroot, we'll
inject it in late with a hook. The empty resolv.conf breaks DNS early in
the build, and causes some binary hooks to fail
2020-10-06 10:20:42 -07:00

5 lines
63 B
Bash
Executable File

#!/bin/sh
set -e
chroot chroot truncate -s 0 /etc/resolv.conf