From 5afdb68a26db48319971fe7efc0a2feec09ae4ac Mon Sep 17 00:00:00 2001 From: XuWei Date: Sun, 6 Aug 2017 21:41:38 -0400 Subject: [PATCH] Fix typo error in xcatprobe discovery precheck --- xCAT-probe/subcmds/discovery | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xCAT-probe/subcmds/discovery b/xCAT-probe/subcmds/discovery index 622fc81f2..56ed145c3 100755 --- a/xCAT-probe/subcmds/discovery +++ b/xCAT-probe/subcmds/discovery @@ -563,8 +563,12 @@ sub check_genesis_file { $genesis_v = `rpm -qi xCAT-genesis-base-ppc64`; } - if ($genesis_v !~ /Built in environment .+fc.* on (.+)\./) { - push @warn_msg, "xcat-genesis-base-ppc64 is built in environment fedora on $1."; + if ($genesis_v =~ /Built in environment .+fc(\d*).+ on (.+)\./) { + my $ver = $1; + my $arch = $2; + push @warn_msg, "xcat-genesis-base-ppc64 is not built in environment fedora 26 or higher version on $arch." if ($ver < 26); + } else { + push @warn_msg, "xcat-genesis-base-ppc64 is not built in environment fedora."; } my $genesis_update_flag_p;