diff options
-rwxr-xr-x | helpers/lh_chroot_resolv | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helpers/lh_chroot_resolv b/helpers/lh_chroot_resolv index afa3036..5dcaf42 100755 --- a/helpers/lh_chroot_resolv +++ b/helpers/lh_chroot_resolv @@ -76,7 +76,12 @@ case "${1}" in # Creating lock file Create_lockfile .lock - if [ -e chroot/etc/resolv.conf.orig ] + if [ -e config/chroot_local-includes/etc/resolv.conf ] + then + # Copying local resolv.conf + cp -a config/chroot_local-includes/etc/resolv.conf chroot/etc/resolv.conf + rm -f chroot/etc/resolv.conf.orig + elif [ -e chroot/etc/resolv.conf.orig ] then # Restoring resolv file or symlink mv chroot/etc/resolv.conf.orig chroot/etc/resolv.conf |