log output

This commit is contained in:
2025-11-16 16:33:00 +01:00
parent cb1c85c2b7
commit c34823673e

View File

@@ -1,6 +1,7 @@
import { $ } from "bun"; import { $ } from "bun";
import type z from "zod"; import type z from "zod";
import type { BootEntries } from "./efibootmgr.schema"; import type { BootEntries } from "./efibootmgr.schema";
import { logger } from "./logger";
export class EfiBootMgrService { export class EfiBootMgrService {
async reboot() { async reboot() {
@@ -80,6 +81,8 @@ export class EfiBootMgrService {
async listBootEntries(): Promise<z.output<typeof BootEntries>> { async listBootEntries(): Promise<z.output<typeof BootEntries>> {
const output = await $`efibootmgr`.text(); const output = await $`efibootmgr`.text();
logger.info(output);
return this.parseEfiBootMgrOutput(output); return this.parseEfiBootMgrOutput(output);
} }
} }