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`