From 8f0b54dfc244585a8141a624260142e5d896063c Mon Sep 17 00:00:00 2001 From: Aiden Gerbrandt Date: Mon, 26 Jan 2026 22:19:41 -0600 Subject: [PATCH] added step for sudo efibootmgr --- BootToWindows.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BootToWindows.md b/BootToWindows.md index 9bf5dcb..674920c 100644 --- a/BootToWindows.md +++ b/BootToWindows.md @@ -20,7 +20,11 @@ fi sudo efibootmgr -n "${boot_number}" && reboot ``` 3. Run `sudo chmod +x /usr/local/bin/boot-windows` to make the script executable. -4. Optionally create a button in your desktop environment that will run that script when clicked. +4. To let `sudo efibootmgr` run without needing a password add the file `/etc/sudoers.d/efibootmgr-config` with the following text: (source: Bazzite) +``` +%wheel ALL=(root) NOPASSWDL /usr/sbin/efibootmgr +``` +5. Optionally create a button in your desktop environment that will run that script when clicked. Note: if running this script does work but you have to manually trigger a reboot, you may need to edit the last part of the last line to be `sudo reboot` instead of just `reboot`