Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
22 changes: 0 additions & 22 deletions bin/lib/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const { prompt, ensureApiKey, getCredential } = require("./credentials");
const registry = require("./registry");
const nim = require("./nim");
const policies = require("./policies");
const { checkCgroupConfig } = require("./preflight");
const HOST_GATEWAY_URL = "http://host.openshell.internal";
const EXPERIMENTAL = process.env.NEMOCLAW_EXPERIMENTAL === "1";

Expand Down Expand Up @@ -69,27 +68,6 @@ async function preflight() {
}
console.log(` ✓ openshell CLI: ${runCapture("openshell --version 2>/dev/null || echo unknown", { ignoreError: true })}`);

// cgroup v2 + Docker cgroupns
const cgroup = checkCgroupConfig();
if (!cgroup.ok) {
console.error("");
console.error(" !! cgroup v2 detected but Docker is not configured for cgroupns=host.");
console.error(" OpenShell's gateway runs k3s inside Docker, which will fail with:");
console.error("");
console.error(" openat2 /sys/fs/cgroup/kubepods/pids.max: no such file or directory");
console.error("");
console.error(" To fix, run:");
console.error("");
console.error(" nemoclaw setup-spark");
console.error("");
console.error(" This adds \"default-cgroupns-mode\": \"host\" to /etc/docker/daemon.json");
console.error(" (preserving any existing settings) and restarts Docker.");
console.error("");
console.error(` Detail: ${cgroup.reason}`);
process.exit(1);
}
console.log(" ✓ cgroup configuration OK");

// GPU
const gpu = nim.detectGpu();
if (gpu && gpu.type === "nvidia") {
Expand Down
80 changes: 0 additions & 80 deletions bin/lib/preflight.js

This file was deleted.

107 changes: 0 additions & 107 deletions test/preflight.test.js

This file was deleted.