From f02ab2e06a9cf5e13b597e3aba287cdae3b44763 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 29 Nov 2007 13:04:56 +0000 Subject: * when setting up the resolver for stage1a, we now copy nsswitch.conf from the host system, too, as otherwise the resolver would not work on a opensuse-10.3 host (so nothing can be installed). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1411 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSSetup/Engine.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/OpenSLX/OSSetup/Engine.pm b/installer/OpenSLX/OSSetup/Engine.pm index 7e0296be..42a1923f 100644 --- a/installer/OpenSLX/OSSetup/Engine.pm +++ b/installer/OpenSLX/OSSetup/Engine.pm @@ -1221,7 +1221,8 @@ sub _stage1A_setupResolver } copyFile('/etc/resolv.conf', "$self->{stage1aDir}/etc"); - spitFile("$self->{stage1aDir}/etc/hosts", '127.0.0.1 localhost'); + copyFile('/etc/nsswitch.conf', "$self->{stage1aDir}/etc"); + spitFile("$self->{stage1aDir}/etc/hosts", "127.0.0.1 localhost\n"); copyFile("$libcFolder/libresolv*", "$self->{stage1aDir}$libcFolder"); copyFile("$libcFolder/libnss_dns*", "$self->{stage1aDir}$libcFolder"); copyFile("$libcFolder/libnss_files*", "$self->{stage1aDir}$libcFolder"); -- cgit v1.2.3-55-g7522