Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions bin/lib/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -2278,13 +2278,40 @@
);

console.log(` ✓ Sandbox '${sandboxName}' created`);

try {
if (process.platform === "darwin") {
const vmKernel = runCapture("docker info --format '{{.KernelVersion}}'", { ignoreError: true }).trim();
if (vmKernel) {
const parts = vmKernel.split(".");
const major = parseInt(parts[0], 10);
const minor = parseInt(parts[1], 10);
if (!isNaN(major) && !isNaN(minor) && (major < 5 || (major === 5 && minor < 13))) {
console.warn(` ⚠ Landlock: Docker VM kernel ${vmKernel} does not support Landlock (requires ≥5.13).`);
console.warn(" Sandbox filesystem restrictions will silently degrade (best_effort mode).");
}
}
} else if (process.platform === "linux") {
const uname = runCapture("uname -r", { ignoreError: true }).trim();
if (uname) {
const parts = uname.split(".");
const major = parseInt(parts[0], 10);
const minor = parseInt(parts[1], 10);
if (!isNaN(major) && !isNaN(minor) && (major < 5 || (major === 5 && minor < 13))) {
console.warn(` ⚠ Landlock: Kernel ${uname} does not support Landlock (requires ≥5.13).`);
console.warn(" Sandbox filesystem restrictions will silently degrade (best_effort mode).");
}
}
}
} catch {}

return sandboxName;
}

// ── Step 3: Inference selection ──────────────────────────────────

// eslint-disable-next-line complexity
async function setupNim(gpu) {

Check failure on line 2314 in bin/lib/onboard.js

View workflow job for this annotation

GitHub Actions / checks

Empty block statement
step(3, 7, "Configuring inference (NIM)");

let model = null;
Expand Down
Loading