-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ujust): Add setup-boot-windows-steam ujust script
* Adds a ujust script for making a steam shortcut that boots into Windows on dual-boot setups
- Loading branch information
1 parent
1797666
commit b3fcda9
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/bash | ||
|
||
# Look up the boot number for Windows in the EFI records | ||
boot_number=$(echo $(efibootmgr) | grep -Po "(?<=Boot)\S{4}(?=( |\* )Windows)") | ||
|
||
# Check that Windows EFI entry was found | ||
if [ -z "$boot_number" ]; then | ||
echo "Cannot find Windows boot in EFI, exiting" | ||
exit 1 | ||
fi | ||
|
||
# Set next boot to be Windows and reboot the machine | ||
sudo efibootmgr -n "${boot_number}" && reboot |
9 changes: 9 additions & 0 deletions
9
system_files/desktop/shared/usr/share/ublue-os/just/86-bazzite-windows.just
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# vim: set ft=make : | ||
|
||
# Adds a script in Steam to boot Windows which is useful for dual-boot setups | ||
setup-boot-windows-steam: | ||
echo "Making efibootmgr -n accessible without sudo" | ||
echo "%wheel ALL=(root) NOPASSWD: /usr/sbin/efibootmgr" | sudo tee /etc/sudoers.d/efibootmgr-config | ||
|
||
echo "Adding /usr/bin/boot-windows as a Non-steam game" | ||
/usr/bin/steamos-add-to-steam /usr/bin/boot-windows |