log output
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { $ } from "bun";
|
||||
import type z from "zod";
|
||||
import type { BootEntries } from "./efibootmgr.schema";
|
||||
import { logger } from "./logger";
|
||||
|
||||
export class EfiBootMgrService {
|
||||
async reboot() {
|
||||
@@ -80,6 +81,8 @@ export class EfiBootMgrService {
|
||||
async listBootEntries(): Promise<z.output<typeof BootEntries>> {
|
||||
const output = await $`efibootmgr`.text();
|
||||
|
||||
logger.info(output);
|
||||
|
||||
return this.parseEfiBootMgrOutput(output);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user