From a7e83eb8ed98791c25f0e4768ac7e6ae6e49fe21 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 4 Apr 2013 13:59:23 +0000 Subject: do not copy /etc/resolv.conf in chroot if not needed only copy it if using either remote display or remote repository (thus fixing goup lookups, mga#9326) rationale: copying /etc/resolv.conf in installer chroot prevent librpm to load some NSS modules, which results in failure to lookup groups when chrooted in the _installed_ system --- tools/drakx-in-chroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/drakx-in-chroot') 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`); -- cgit v1.2.1