1
Description: Replace single by recovery to trigger friendly-recovery
2
Author: Stéphane Graber <stgraber@ubuntu.com>
4
Last-Update: 2011-09-13
6
Index: b/util/grub.d/10_linux.in
7
===================================================================
8
--- a/util/grub.d/10_linux.in
9
+++ b/util/grub.d/10_linux.in
11
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_EXTRA} ${GRUB_CMDLINE_LINUX_DEFAULT}" \
13
if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
14
- linux_entry "${OS}" "${version}" true \
15
- "single nomodeset ${GRUB_CMDLINE_LINUX}"
16
+ if [ -x /lib/recovery-mode/recovery-menu ]; then
17
+ linux_entry "${OS}" "${version}" true \
18
+ "recovery nomodeset ${GRUB_CMDLINE_LINUX}"
20
+ linux_entry "${OS}" "${version}" true \
21
+ "single nomodeset ${GRUB_CMDLINE_LINUX}"
25
list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`