added step for sudo efibootmgr

This commit is contained in:
2026-01-26 22:19:41 -06:00
parent 05d51dd5fa
commit 8f0b54dfc2

View File

@@ -20,7 +20,11 @@ fi
sudo efibootmgr -n "${boot_number}" && reboot sudo efibootmgr -n "${boot_number}" && reboot
``` ```
3. Run `sudo chmod +x /usr/local/bin/boot-windows` to make the script executable. 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` 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`