Minor fix for custom kernel from RPM.

This commit is contained in:
Shital Savekar 2017-03-15 13:34:58 +05:30
Родитель a322234169
Коммит ce913babc1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -142,7 +142,7 @@ function InstallCustomKernel ($customKernel, $allVMData, [switch]$RestartAfterUp
try
{
$customKernel = $customKernel.Trim()
if( ($customKernel -ne "linuxnext") -and ($customKernel -ne "netnext") -and !($customKernel.EndsWith(".deb")))
if( ($customKernel -ne "linuxnext") -and ($customKernel -ne "netnext") -and !($customKernel.EndsWith(".deb")) -and !($customKernel.EndsWith(".rpm")) )
{
LogErr "Only linuxnext and netnext version is supported. Other version will be added soon. Use -customKernel linuxnext. Or use -customKernel <link to deb file>"
}