~psusi/ubuntu/saucy/grub2/fix-dmraid

« back to all changes in this revision

Viewing changes to debian/patches/default_grub_d.patch

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-01-03 11:40:44 UTC
  • mfrom: (17.6.31 experimental)
  • Revision ID: package-import@ubuntu.com-20130103114044-et8gar9lol415wc9
Tags: 2.00-10ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme and an appropriate background for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel option.
  - Bypass menu unless other OSes are installed or Shift is pressed.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Reduce visual clutter in normal mode.
  - Remove verbose messages printed before reading configuration.
  - Suppress kernel/initrd progress messages, except in recovery mode.
  - Show the boot menu if the previous boot failed.
  - Adjust upgrade version checks for Ubuntu.
  - Suppress "GRUB loading" message unless Shift is held down.
  - Adjust versions of grub-doc and grub-legacy-doc conflicts.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Check hardware support before using gfxpayload=keep.
  - Set vt.handoff=7 for smooth handoff to kernel graphical mode.
  - In recovery mode, add nomodeset to the Linux kernel arguments, and
    remove the 'set gfxpayload=keep' command.
  - Skip Windows os-prober entries on Wubi systems, and suppress the menu
    by default if those are the only other-OS entries.
  - Handle probing striped DM-RAID devices.
  - Replace 'single' by 'recovery' when friendly-recovery is installed.
  - Disable cursor as early as possible in grub_main.
  - Apply patch from Fedora to add a "linuxefi" loader.
  - Automatically call linuxefi from linux when necessary.
  - On amd64, add raw-uefi custom upload tarballs for signing.
  - Generate configuration for signed UEFI kernels if available.
  - Install signed images if UEFI Secure Boot is enabled.
  - Output a menu entry for firmware setup on UEFI FastBoot systems.
  - Stop using the /usr/share/images/desktop-base/desktop-grub.png
    alternative as the fallback background.
  - If the postinst is running in a container, skip grub-install and all
    its associated questions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Read /etc/default/grub.d/*.cfg after /etc/default/grub
 
2
Author: Colin Watson <cjwatson@ubuntu.com>
 
3
Bug-Ubuntu: https://bugs.launchpad.net/bugs/901600
 
4
Forwarded: no
 
5
Last-Update: 2013-01-02
 
6
 
 
7
Index: b/util/grub-install.in
 
8
===================================================================
 
9
--- a/util/grub-install.in
 
10
+++ b/util/grub-install.in
 
11
@@ -68,6 +68,11 @@
 
12
 if test -f "${sysconfdir}/default/grub" ; then
 
13
     . "${sysconfdir}/default/grub"
 
14
 fi
 
15
+for x in "${sysconfdir}/default/grub.d"/*.cfg ; do
 
16
+  if [ -e "${x}" ]; then
 
17
+    . "${x}"
 
18
+  fi
 
19
+done
 
20
 
 
21
 bootloader_id="$(echo "$GRUB_DISTRIBUTOR" | tr 'A-Z' 'a-z' | cut -d' ' -f1)"
 
22
 if test -z "$bootloader_id"; then
 
23
Index: b/util/grub-mkconfig.in
 
24
===================================================================
 
25
--- a/util/grub-mkconfig.in
 
26
+++ b/util/grub-mkconfig.in
 
27
@@ -150,6 +150,11 @@
 
28
 if test -f ${sysconfdir}/default/grub ; then
 
29
   . ${sysconfdir}/default/grub
 
30
 fi
 
31
+for x in ${sysconfdir}/default/grub.d/*.cfg ; do
 
32
+  if [ -e "${x}" ]; then
 
33
+    . "${x}"
 
34
+  fi
 
35
+done
 
36
 
 
37
 # XXX: should this be deprecated at some point?
 
38
 if [ "x${GRUB_TERMINAL}" != "x" ] ; then