diff --git a/boot-to-windows.sh b/boot-to-windows.sh index 7ee6bce..5cb7d6d 100755 --- a/boot-to-windows.sh +++ b/boot-to-windows.sh @@ -49,8 +49,8 @@ while true; do echo "GRUB wird beim nächsten Neustart in die Windows-Partition booten." elif [[ "$GRUB_VERSION" == "grub2" ]]; then # Für GRUB2 verwenden wir grub2-set-default - sudo grub2-set-default "$WINDOWS_ENTRY" - echo "GRUB2 wird beim nächsten Neustart in die Windows-Partition booten." + sudo grub2-reboot "$WINDOWS_ENTRY" + echo "GRUB wird beim nächsten Neustart in die Windows-Partition booten." fi break elif [[ "$user_input" =~ ^[Nn]$ ]]; then