Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:michael-chang:devel:grub:appendedsig-2.11:v2
grub2
add-GRUB_CMDLINE_LINUX_RECOVERY-for.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File add-GRUB_CMDLINE_LINUX_RECOVERY-for.patch of Package grub2
From: Michael Chang <mchang@suse.com> Date: Fri, 6 Jul 2012 15:55:18 +0800 Subject: [PATCH] add GRUB_CMDLINE_LINUX_RECOVERY for recovery mode References: [openSUSE-factory] Has FailSafe or Safe Mode been removed permanently from 12.2? Patch-Mainline: no We adapt the script a bit in order to support openSUSE's failsafe booting mode. We don't use single user mode but with specific kernel command line options decided in YaST. These command line could be applied to grub2's recovery mode via the new setting GRUB_CMDLINE_LINUX_RECOVERY. --- util/grub-mkconfig.in | 3 ++- util/grub.d/10_linux.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in index f8cbb8d7a..d092c35bc 100644 --- a/util/grub-mkconfig.in +++ b/util/grub-mkconfig.in @@ -251,7 +251,8 @@ export GRUB_DEFAULT \ GRUB_ENABLE_CRYPTODISK \ GRUB_BADRAM \ GRUB_OS_PROBER_SKIP_LIST \ - GRUB_DISABLE_SUBMENU + GRUB_DISABLE_SUBMENU \ + GRUB_CMDLINE_LINUX_RECOVERY if test "x${grub_cfg}" != "x"; then rm -f "${grub_cfg}.new" diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index 80a03b7aa..5809d7314 100644 --- a/util/grub.d/10_linux.in +++ b/util/grub.d/10_linux.in @@ -287,7 +287,7 @@ while [ "x$list" != "x" ] ; do "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then linux_entry "${OS}" "${version}" recovery \ - "single ${GRUB_CMDLINE_LINUX}" + "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_RECOVERY}" fi list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor