2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 01:56:39 +00:00

Merge pull request #2899 from immarvin/onubtdns

fix issue #2898 on ububuntu 16.4.1-x86_64  diskless, failed to resolve hostname due to lack of libnss_dns.so.2
This commit is contained in:
Bin Xu 2017-04-21 13:41:19 +08:00 committed by GitHub
commit 087ad35e4b

View File

@ -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";