summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhelpers/lh_chroot_resolv7
1 files changed, 6 insertions, 1 deletions
diff --git a/helpers/lh_chroot_resolv b/helpers/lh_chroot_resolv
index afa303680..5dcaf427a 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