mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 01:26:38 +00:00
fix 4764,support centos7 and rhelhpc7 stateless
This commit is contained in:
parent
a7f948c5a6
commit
6abb50e103
@ -1704,6 +1704,14 @@ sub using_systemd {
|
||||
if ($1 >= 7) {
|
||||
return 1;
|
||||
}
|
||||
}elsif ($os =~/centos(\d+)/){
|
||||
if($1 >= 7){
|
||||
return 1;
|
||||
}
|
||||
}elsif ($os =~/rhelhpc(\d+)/){
|
||||
if($1 >= 7){
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user