2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

Remove the configuration part

This commit is contained in:
GONG Jie
2019-04-30 15:25:03 +08:00
parent c02eaba033
commit 9b845d1b11

View File

@@ -530,22 +530,6 @@ sub get_file_name {
}
}
# Read the configuration file named LATEST under directory $searchpath
if (open(my $fh, '<', "$searchpath/LATEST")) {
my $fallbackos = <$fh>;
$fallbackos =~ s/^\s+|\s+$//g;
close($fh);
foreach my $osbase (xCAT::SvrUtils::get_os_search_list($fallbackos)) {
if (-r "$searchpath/$profile.$osbase.$arch.$extension") {
return "$searchpath/$profile.$osbase.$arch.$extension";
}
if (-r "$searchpath/$profile.$osbase.$extension") {
return "$searchpath/$profile.$osbase.$extension";
}
}
}
# No file matching OS name was found, next try just arch, if still nothing -> default to just profile
if (-r "$searchpath/$profile.$arch.$extension") {
return "$searchpath/$profile.$arch.$extension";