summaryrefslogtreecommitdiffstats
path: root/tools/drakx-in-chroot
diff options
context:
space:
mode:
Diffstat (limited to 'tools/drakx-in-chroot')
-rwxr-xr-xtools/drakx-in-chroot4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot
index 43917fff7..d751896c7 100755
--- a/tools/drakx-in-chroot
+++ b/tools/drakx-in-chroot
@@ -118,7 +118,9 @@ mkdir_p("$dir/dev");
eval { cp_af($_, "$dir$_") } foreach qw(/dev/root);
#- if the DISPLAY is remote, we may need to resolve the name:
-eval { cp_af('/etc/resolv.conf', "$SLASH_LOCATION$_") };
+if ($remote_repository || $ENV{DISPLAY} !~ /^:/) {
+ eval { cp_af('/etc/resolv.conf', "$SLASH_LOCATION$_") };
+}
{
chomp(my $kernel_version = `uname -r`);