~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to debian/patches/ubuntu_quick_boot.patch

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2011-09-05 16:12:50 UTC
  • Revision ID: package-import@ubuntu.com-20110905161250-eim1f4ktbsr044tl
Tags: 1.99-12ubuntu1
* 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.
  - Don't generate device.map during grub-install or grub-mkconfig.
  - 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.
  - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
  - Look for .mo files in /usr/share/locale-langpack first.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Check hardware support before using gfxpayload=keep.
  - Put second and subsequent Linux menu entries in a submenu.
  - Preferred resolution detection for VBE.
  - Set vt.handoff=7 for smooth handoff to kernel graphical mode.
  - Update default/grub.md5sum to include maverick's default md5sum.
  - Add nomodeset to Linux kernel arguments in recovery mode.
  - Skip Windows os-prober entries on Wubi systems.
* Suppress the menu by default on Wubi systems with no other-OS entries
  apart from Windows (LP: #826378).
* Always store hostdisk drive names in canonical form, fixing 'grub-probe
  --target=drive' output when device.map is absent (LP: #820500).

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
===================================================================
45
45
--- a/util/grub.d/30_os-prober.in
46
46
+++ b/util/grub.d/30_os-prober.in
47
 
@@ -23,18 +23,75 @@
 
47
@@ -23,22 +23,80 @@
48
48
 
49
49
 . ${libdir}/grub/grub-mkconfig_lib
50
50
 
120
120
   exit 0
121
121
 fi
122
122
 
123
 
@@ -100,6 +157,7 @@
124
 
   fi
125
 
 
126
 
   echo "Found ${LONGNAME} on ${DEVICE}" >&2
127
 
+  found_other_os=1
128
 
 
 
123
 osx_entry() {
 
124
+       found_other_os=1
 
125
         cat << EOF
 
126
 menuentry "${LONGNAME} (${2}-bit) (on ${DEVICE})" --class osx --class darwin --class os {
 
127
 EOF
 
128
@@ -104,6 +162,7 @@
129
129
   case ${BOOT} in
130
130
     chain)
131
 
@@ -202,3 +260,5 @@
 
131
 
 
132
+      found_other_os=1
 
133
       cat << EOF
 
134
 menuentry "${LONGNAME} (on ${DEVICE})" --class windows --class os {
 
135
 EOF
 
136
@@ -146,6 +205,7 @@
 
137
          LINITRD="${LINITRD#/boot}"
 
138
        fi
 
139
 
 
140
+       found_other_os=1
 
141
         cat << EOF
 
142
 menuentry "${LLABEL} (on ${DEVICE})" --class gnu-linux --class gnu --class os {
 
143
 EOF
 
144
@@ -173,6 +233,7 @@
 
145
       osx_entry xnu_kernel64 64
 
146
     ;;
 
147
     hurd)
 
148
+      found_other_os=1
 
149
       cat << EOF
 
150
 menuentry "${LONGNAME} (on ${DEVICE})" --class hurd --class gnu --class os {
 
151
 EOF
 
152
@@ -202,3 +263,5 @@
132
153
     ;;
133
154
   esac
134
155
 done