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

« back to all changes in this revision

Viewing changes to debian/patches/ubuntu_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
 
Index: b/util/grub-install.in
2
 
===================================================================
3
 
--- a/util/grub-install.in
4
 
+++ b/util/grub-install.in
5
 
@@ -68,6 +68,11 @@
6
 
 if test -f "${sysconfdir}/default/grub" ; then
7
 
     . "${sysconfdir}/default/grub"
8
 
 fi
9
 
+for x in "${sysconfdir}/default/grub.d"/*.cfg ; do
10
 
+  if [ -e "${x}" ]; then
11
 
+    . "${x}"
12
 
+  fi
13
 
+done
14
 
 
15
 
 bootloader_id="$(echo "$GRUB_DISTRIBUTOR" | tr 'A-Z' 'a-z' | cut -d' ' -f1)"
16
 
 if test -z "$bootloader_id"; then
17
 
Index: b/util/grub-mkconfig.in
18
 
===================================================================
19
 
--- a/util/grub-mkconfig.in
20
 
+++ b/util/grub-mkconfig.in
21
 
@@ -150,6 +150,11 @@
22
 
 if test -f ${sysconfdir}/default/grub ; then
23
 
   . ${sysconfdir}/default/grub
24
 
 fi
25
 
+for x in ${sysconfdir}/default/grub.d/*.cfg ; do
26
 
+  if [ -e "${x}" ]; then
27
 
+    . "${x}"
28
 
+  fi
29
 
+done
30
 
 
31
 
 # XXX: should this be deprecated at some point?
32
 
 if [ "x${GRUB_TERMINAL}" != "x" ] ; then