livecd-rootfs/live-build/ubuntu-core/hooks/56-handle_resolvconf.chroot.binary
James Hunt 3ed35d22c6 Convert resolvconf hook from a chroot hook to a binary hook since lb
overwrites /etc/resolv.conf after the chroot hooks have run.
2014-10-09 11:43:52 +01:00

8 lines
339 B
Bash
Executable File

#!/bin/sh -x
#---------------------------------------------------------------------
# this must be run as a binary hook (outside the chroot) since lb
# massages resolv.conf on finishing the chroot operations.
#---------------------------------------------------------------------
ln -fs /run/resolvconf/resolv.conf chroot/etc/resolv.conf