2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-16 19:30:26 +00:00

fix issue #2898 on ububuntu 14.4+ x86_64 diskless provision , failed to resolve hostname due to lack of libnss_dns.so.2

This commit is contained in:
immarvin
2017-04-21 01:19:29 -04:00
parent 1efc56bfb7
commit 73b6439f05

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