Rebooting into Windows without root access?

I have a Windows drive alongside my Bazzite install for streaming Steam VR with the Steam Link app. Is it possible to create a script to reboot into Windows without requiring root access, its annoying to have to enter an admin password to reboot in a different OS. This is the script I am currently using
#! /bin/bash
sudo efibootmgr -n 0000
shutdown -r now
#! /bin/bash
sudo efibootmgr -n 0000
shutdown -r now
Boot0000 is Windows Boot Manager Boot0001 (default) is Bazzite Running efibootmgr does not require sudo but efibootmgr -n does. When trying to run efibootmgr -n without root permission I get the error Could not set BootNext: Permission denied Is there a way to make it so efibootmgr -n doesn't require root access or a different command I can use to modify my uefi nextboot without requiring root access?
Solution:
Yup, I did a youtube guide and reddit post on this a month ago https://www.reddit.com/r/Bazzite/comments/1fb6gs4/how_to_easily_boot_windows_from_bazzite_gamemode/ Hope it helps
Reddit
From the Bazzite community on Reddit: How to easily boot Windows fr...
Explore this post and more from the Bazzite community
Jump to solution
2 Replies
Solution
wolfyreload
wolfyreload3mo ago
Yup, I did a youtube guide and reddit post on this a month ago https://www.reddit.com/r/Bazzite/comments/1fb6gs4/how_to_easily_boot_windows_from_bazzite_gamemode/ Hope it helps
Reddit
From the Bazzite community on Reddit: How to easily boot Windows fr...
Explore this post and more from the Bazzite community
OnfireNFS
OnfireNFSOP3mo ago
Worked like a charm! Thanks!
Want results from more Discord servers?
Add your server