From 59e99089b5e219f5ee0f0f8be9c4962966eab298 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Tue, 24 Dec 2024 13:16:17 +0100 Subject: [PATCH] changed to grub2-reboot --- boot-to-windows.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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