~ubuntu-branches/ubuntu/lucid/grub2/lucid

« back to all changes in this revision

Viewing changes to commands/terminal.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-02-03 16:53:33 UTC
  • mfrom: (17.3.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100203165333-jji53olzx5rksyn1
Tags: 1.98~20100128-1ubuntu1
* 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 for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Conflict with grub (<< 0.97-54) as well as grub-legacy.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu. Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed. If it is, show the
    menu, otherwise boot immediately. If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt. Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - Suppress progress messages as the kernel and initrd load for
    non-recovery kernel menu entries.
  - Keep the loopback file open so that subsequent changes to the "root"
    environment variable don't affect it.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Handle RAID devices containing virtio components.
  - Improve DM-RAID probing support.
* Don't generate /boot/grub/device.map during grub-install by default.
* Store grub-pc/install_devices as persistent device names under
  /dev/disk/by-id/.  Migrate previous device names to that, with explicit
  confirmation in non-trivial cases to make sure we got the right ones.  If
  the devices we were told to install to ever go away, ask again.
* If the user opts to install GRUB nowhere, make sure they really mean it.
* Backport disk read fixes from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  GRUB  --  GRand Unified Bootloader
3
 
 *  Copyright (C) 2009  Free Software Foundation, Inc.
 
3
 *  Copyright (C) 2009,2010  Free Software Foundation, Inc.
4
4
 *
5
5
 *  GRUB is free software: you can redistribute it and/or modify
6
6
 *  it under the terms of the GNU General Public License as published by
112
112
              break;
113
113
          if (term)
114
114
            {
 
115
              if (term->init && term->init () != GRUB_ERR_NONE)
 
116
                return grub_errno;
 
117
 
115
118
              grub_list_remove (GRUB_AS_LIST_P (&(grub_term_inputs_disabled)),
116
119
                                GRUB_AS_LIST (term));
117
 
              if (term->init)
118
 
                term->init ();
119
120
              grub_list_push (GRUB_AS_LIST_P (&grub_term_inputs),
120
121
                              GRUB_AS_LIST (term));
121
122
            }
152
153
          break;
153
154
      if (term)
154
155
        {
 
156
          if (term->init && term->init () != GRUB_ERR_NONE)
 
157
            return grub_errno;
 
158
 
155
159
          grub_list_remove (GRUB_AS_LIST_P (&(grub_term_inputs_disabled)),
156
160
                            GRUB_AS_LIST (term));
157
 
          if (term->init)
158
 
            term->init ();
159
161
          grub_list_push (GRUB_AS_LIST_P (&grub_term_inputs),
160
162
                          GRUB_AS_LIST (term));
161
163
        }       
269
271
              break;
270
272
          if (term)
271
273
            {
 
274
              if (term->init && term->init () != GRUB_ERR_NONE)
 
275
                return grub_errno;
 
276
 
272
277
              grub_list_remove (GRUB_AS_LIST_P (&(grub_term_outputs_disabled)),
273
278
                                GRUB_AS_LIST (term));
274
 
              if (term->init)
275
 
                term->init ();
276
279
              grub_list_push (GRUB_AS_LIST_P (&grub_term_outputs),
277
280
                              GRUB_AS_LIST (term));
278
281
            }
310
313
          break;
311
314
      if (term)
312
315
        {
 
316
          if (term->init && term->init () != GRUB_ERR_NONE)
 
317
            return grub_errno;
 
318
 
313
319
          grub_list_remove (GRUB_AS_LIST_P (&(grub_term_outputs_disabled)),
314
320
                            GRUB_AS_LIST (term));
315
 
          if (term->init)
316
 
            term->init ();
317
321
          grub_list_push (GRUB_AS_LIST_P (&grub_term_outputs),
318
322
                          GRUB_AS_LIST (term));
319
323
        }