livecd-rootfs/live-build/ubuntu-core/hooks/56-handle_resolvconf.chroot.binary
Michael Vogt a40ec94d24 Import patches-unapplied version 2.252 to ubuntu/utopic-proposed
Imported using git-ubuntu import.

Changelog parent: c788aa8b1c8ea89c6d3dcec2b5b7b1d17993fc0a

New changelog entries:
  [ James Hunt ]
  * Convert resolvconf hook from a chroot hook to a binary hook since lb
    overwrites /etc/resolv.conf after the chroot hooks have run.  * 
  * create /etc/hosts for ubuntu-core:system-image
2014-10-09 16:54:23 +00: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