osInfo() improved uefi parsing (FreeBSD)

This commit is contained in:
Sebastian Hildebrandt 2022-11-21 11:28:35 +01:00
parent eccebb1e7f
commit 65f66d17bf

View File

@ -262,7 +262,7 @@ function osInfo(callback) {
}
if (_freebsd || _openbsd || _netbsd) {
exec('sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod', function (error, stdout) {
exec('sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml', function (error, stdout) {
let lines = stdout.toString().split('\n');
const distro = util.getValue(lines, 'kern.ostype');
const logofile = util.getValue(lines, 'kern.ostype');