diff --git a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm index c48b230da..31b619771 100644 --- a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm +++ b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm @@ -79,7 +79,7 @@ sub get_package_names { my @tmp_array=(); - if ($plist_file_name) { + if ($plist_file_name && -r $plist_file_name) { my $pkgfile; open($pkgfile,"<","$plist_file_name"); while (<$pkgfile>) {