From b8f9c70fd25a54df83eb3491be4b53ec06d5ef00 Mon Sep 17 00:00:00 2001 From: Wai Yee Wong Date: Fri, 7 May 2021 16:39:54 -0400 Subject: [PATCH] Process .bin files correctly by nodeset on RHEL 8.x --- xCAT-server/lib/xcat/plugins/onie.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/onie.pm b/xCAT-server/lib/xcat/plugins/onie.pm index 35cae4d6d..ccd49f4e1 100644 --- a/xCAT-server/lib/xcat/plugins/onie.pm +++ b/xCAT-server/lib/xcat/plugins/onie.pm @@ -306,7 +306,7 @@ sub nodeset { my $flag=0; if (-r $image_pkgdir) { my @filestat = `file $image_pkgdir`; - if (grep /$image_pkgdir: data/, @filestat) { + if ((grep /$image_pkgdir: data/, @filestat) || (grep /$image_pkgdir: .* \(binary data/, @filestat)) { $flag=1; } }