0.3.1: load vmm/nmdm at runtime and persist vmm_load/nmdm_load in loader.conf.local
This commit is contained in:
1 parent
3eb5e6d013
commit
29365ce649
5 files changed
+51
-8
No files matched your search
@@ -449,6 +449,11 @@ function vmm_selfcheck(): array
|
||||
'vmm' => trim((string)@shell_exec('kldstat -q -n vmm && echo loaded || echo missing')),
|
||||
'nmdm' => trim((string)@shell_exec('kldstat -q -n nmdm && echo loaded || echo missing')),
|
||||
],
|
||||
'loader_conf' => [
|
||||
'file' => '/boot/loader.conf.local',
|
||||
'vmm' => (bool)preg_match('/^vmm_load=/m', (string)@file_get_contents('/boot/loader.conf.local')),
|
||||
'nmdm' => (bool)preg_match('/^nmdm_load=/m', (string)@file_get_contents('/boot/loader.conf.local')),
|
||||
],
|
||||
];
|
||||
$out['vm']['version'] = $vm['available'] ? vmm_vm_version() : [];
|
||||
$out['datastores'] = $vm['available'] ? vmm_datastores() : [];
|
||||
|
||||
Reference in new issue
Block a user