mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 18:50:28 +00:00
SLE15: genimage fix $osver_host detection
This commit is contained in:
@@ -203,7 +203,7 @@ unless (grep /af_packet/, @ndrivers) {
|
||||
}
|
||||
|
||||
my $osver_host;
|
||||
if (`grep VERSION /etc/os-release` =~ /VERSION = (\d+)/) {
|
||||
if (`grep VERSION /etc/os-release` =~ /VERSION="(\d+)/) {
|
||||
$osver_host = $1;
|
||||
} else {
|
||||
$osver_host = 11;
|
||||
|
Reference in New Issue
Block a user