From 73b6439f053e40e89eda635e39f2defb13fe0dca Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 21 Apr 2017 01:19:29 -0400 Subject: [PATCH] fix issue #2898 on ububuntu 14.4+ x86_64 diskless provision , failed to resolve hostname due to lack of libnss_dns.so.2 --- xCAT-server/share/xcat/netboot/ubuntu/genimage | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage index c8e6d139d..f6c3ee2db 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/genimage +++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage @@ -1657,9 +1657,12 @@ EOMS push @filestoadd, $_; } } + if ($arch =~ /x86_64/) { push @filestoadd, "lib64/libnss_dns.so.2"; + #the path of libnss_dns.so.2 for ubuntu 14.4+ + push @filestoadd, "lib/x86_64-linux-gnu/libnss_dns.so.2"; push @filestoadd, "lib64/libresolv.so.2"; } elsif ($arch =~ /ppc64el/) { push @filestoadd, "lib/powerpc64le-linux-gnu/libnss_files.so.2";