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

Merge pull request #2189 from immarvin/onbp

fix [fvt] nodeset node diskless image failed for could not find the diskless image #2188
This commit is contained in:
Yuan Bai 2016-11-22 16:05:32 +08:00 committed by GitHub
commit dd3c8ad174
2 changed files with 2 additions and 2 deletions

View File

@ -1220,7 +1220,7 @@ sub mknetboot
copy("$rootimgdir/initrd.gz", "$rootimgdir/initrd-stateless.gz");
}
}
unless (-f -r $compressedrootimg) {
unless (-f -r "$rootimgdir/$compressedrootimg") {
$callback->({
error => ["No packed image for platform $osver, architecture $arch, and profile $profile, please run packimage (e.g. packimage -o $osver -p $profile -a $arch"],
errorcode => [1] });

View File

@ -379,7 +379,7 @@ sub mknetboot
}
}
unless (-r -f $compressedrootimg) {
unless (-r -f "$rootimgdir/$compressedrootimg") {
$callback->({
error => [qq{No packed image for platform $osver, architecture $arch, and profile $profile, please run packimage before nodeset}],
errorcode => [1]