changed to grub2-reboot

This commit is contained in:
2024-12-24 13:16:17 +01:00
parent c216433ea6
commit 59e99089b5

View File

@@ -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