We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39db1b6 commit c1d26c9Copy full SHA for c1d26c9
lib/system.js
@@ -120,6 +120,14 @@ function system(callback) {
120
util.noop();
121
}
122
123
+ if (!result.uuid && (_freebsd || _openbsd || _netbsd)) {
124
+ try {
125
+ const disksById = execSync('sysctl -i kern.hostid kern.hostuuid', util.execOptsLinux).toString();
126
+ result.uuid = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
127
+ } catch (e) {
128
+ util.noop();
129
+ }
130
131
if (!result.virtual && (os.release().toLowerCase().indexOf('microsoft') >= 0 || os.release().toLowerCase().endsWith('wsl2'))) {
132
const kernelVersion = parseFloat(os.release().toLowerCase());
133
result.virtual = true;
0 commit comments