livecd-rootfs/live-build/buildd/hooks/49-empty-resolv-conf.binary
David Krauser 8bc9cb77a1 Safely set /etc/resolv.conf to an empty file in buildd images
In the buildd image chroot, /etc/resolv.conf is a symbolic link to
a configuration file in the /run directory. A call to truncate will
modify that file, which we should not do. Instead, we want to remove
the symbolic link and replace it with an empty file.
2020-03-27 15:17:05 -04:00

4 lines
84 B
Bash
Executable File

#!/bin/sh -e
chroot chroot rm /etc/resolv.conf
chroot chroot touch /etc/resolv.conf