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:
parent
acf7dac1aa
commit
e7b43c6edd
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user