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

Improve version test operator

This commit is contained in:
Mark Gurevich 2022-04-04 17:01:48 -04:00
parent acf7dac1aa
commit e7b43c6edd

View File

@ -289,7 +289,7 @@ sub setstate {
my $os_version = $nodeos;
$os_version =~ s/sles//i; # Strip sles if there
$os_version =~ s/sle//i; # String sle if there
if ($os_version ge "15") {
if ($os_version >= "15") {
# Make sure for SLES15 or higher can still boot
# from disk in "standby" state
unlink("grub2-$node");