From 685606325500f54055db61f4a5fabffbaa798e42 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Sun, 16 Nov 2025 19:18:41 +0100 Subject: [PATCH] run commands with sudo --- src/efibootmgr.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/efibootmgr.service.ts b/src/efibootmgr.service.ts index e060060..3d81259 100644 --- a/src/efibootmgr.service.ts +++ b/src/efibootmgr.service.ts @@ -5,11 +5,11 @@ import { logger } from "./logger"; export class EfiBootMgrService { async reboot() { - await $`reboot`; + await $`sudo /usr/sbin/reboot`; } async setNextBoot(bootNum: number) { - await $`efibootmgr -n ${bootNum}`; + await $`sudo /usr/bin/efibootmgr -n ${bootNum}`; } parseEfiBootMgrOutput(output: string): z.output { @@ -83,7 +83,7 @@ export class EfiBootMgrService { } async listBootEntries(): Promise> { - const output = await $`efibootmgr`.text(); + const output = await $`sudo /usr/bin/efibootmgr`.text(); logger.info(output);