Created
January 15, 2024 10:49
-
-
Save julian-klode/9e64ded494d208f3597cab498177f533 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
From 258fafeb3fb0317ab3b65b01737291d858487441 Mon Sep 17 00:00:00 2001 | |
From: Julian Andres Klode <[email protected]> | |
Date: Mon, 15 Jan 2024 11:48:04 +0100 | |
Subject: [PATCH] recovery fixup | |
--- | |
util/grub.d/10_linux.in | 11 +++++------ | |
1 file changed, 5 insertions(+), 6 deletions(-) | |
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | |
index 36171bf3c..a29f70577 100644 | |
--- a/util/grub.d/10_linux.in | |
+++ b/util/grub.d/10_linux.in | |
@@ -60,7 +60,11 @@ case ${GRUB_DEVICE} in | |
;; | |
esac | |
-: ${GRUB_CMDLINE_LINUX_RECOVERY:=single} | |
+if [ -x /lib/recovery-mode/recovery-menu ]; then | |
+ : ${GRUB_CMDLINE_LINUX_RECOVERY:=recovery} | |
+else | |
+ : ${GRUB_CMDLINE_LINUX_RECOVERY:=single} | |
+fi | |
# Default to disabling partition uuid support to maintian compatibility with | |
# older kernels. | |
@@ -98,11 +102,6 @@ esac | |
title_correction_code= | |
-if [ -x /lib/recovery-mode/recovery-menu ]; then | |
- GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} recovery" | |
-else | |
- GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} single" | |
-fi | |
if [ "$ubuntu_recovery" = 1 ]; then | |
GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY nomodeset" | |
fi | |
-- | |
2.43.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment