log output
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user