diff --git a/index.ts b/index.ts index 699559d..3e165f8 100644 --- a/index.ts +++ b/index.ts @@ -72,42 +72,4 @@ socat tcp-listen:80,reuseaddr,fork tcp:localhost:3050 & console.timeEnd("Building"); runQemu(squashfs, kernel, { graphic: true }); - - // await makeService({ - // parentDir: rootfsDir, - // name: "grafana", - // packages: ["grafana"], - // setup: async (dir) => {}, - // initScript: async (dir) => {}, - // }); - // try { - // await spawn("sudo", ["chroot", rootfsDir], { stdio: "inherit" }); - // } catch {} } - -// interface Service {} -// async function makeService({ -// parentDir, -// name, -// packages, -// setup, -// initScript: _initScript, -// }: { -// parentDir: string; -// name: string; -// packages?: string[]; -// setup: (dir: string) => Promise; -// initScript: (dir: string) => Promise; -// }) { -// const rootsDir = path.join(parentDir, "/nulo/roots/"); -// await mkdir(rootsDir, { recursive: true }); - -// const alpine = await Alpine.makeWorld({ -// dir: path.join(rootsDir, name), -// packages, -// }); - -// await setup(alpine.dir); - -// // const initScript = await _initScript(rootfsDir); -// }