Differences between revisions 1 and 48 (spanning 47 versions)
Revision 1 as of 2007-05-03 18:33:20
Size: 1325
Editor: ?RobertMillan
Comment:
Revision 48 as of 2013-05-22 09:53:19
Size: 3350
Editor: ?Bonno Bloksma
Comment: removed editing 00_header file, added GRUB_GFXPAYLOAD_LINUX=keep
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English -~
----
Line 3: Line 7:
Initial proposal sent by Otavio: http://lists.debian.org/debian-release/2007/04/msg00328.html

== Improvements ==

This list skips the obvious about cleaner design, etc etc. Only tangible improvements here.

- GPT: For non-EFI systems, GPT needs patching (see #407338)
  - EFI: Mandatory for Intel-Mac. Probably others during lenny life period.

- UTF-8 in menu: Needs unifont-bin (currently in queue/NEW), and latest update-grub upstream patch.
  - gettext: Not implemented, should be trivial though.

- LVM / software RAID: Investigate how complete/usable it is.

- powerpc: New port.

- grub.cfg is scriptable.
== Grub2 in Debian-Installer ==
 * Initial proposal sent by Otavio: http://lists.debian.org/debian-release/2007/04/msg00328.html
 * The issues to be resolved before switching to grub2 as default are tracked in the meta Bug: DebianBug:477094
{{{#!wiki comment
  * DebianBug:470894 grub-installer: user parameters are not added to grub.cfg for grub2
  * DebianBug:473401 grub-installer: grub2 config for Windows partition does not boot
  * DebianBug:477083 grub-pc: Is excruciatingly slow when compared to grub (legacy)
  * DebianBug:477090 grub-installer: no support for dmraid and multipath for grub2
  * DebianBug:477092 grub-installer: does not support setting password for grub2
  * DebianBug:483971 support for device-mapper multipath
}}}
Line 22: Line 20:
 * lock / password mechanism (done, see [[http://grub.enbug.org/Authentication|here]] how to use it)
 * Menu's {{{default=saved}}} / grub-reboot isn't implemented.
 * xen detection / setup in update-grub
Line 23: Line 24:
- splash screen: The abstraction layer for using VGA/VBE/whatever is there. There's also a bitmap loader (PNG support being worked on). We just need to figure out how to enable it (maybe the user interface is missing). == Non-regression issues that may become essential (or at least, desirable) during lenny life period ==
Line 25: Line 26:
- ReiserFS not implemented: being worked on? ask Subdino @ #grub about it  * Filesystems haven't been proof-tested with 64-bit offsets (2 TiB disks). Not really a regression (Legacy GRUB has the same problem), but it'll become critical in the future. There's a task for this in upstream: http://savannah.gnu.org/task/?7667
Line 27: Line 28:
- XFS is implemented, but doesn't work too well: much like GRUB Legacy. Not really a regression in fact ;-).
Line 29: Line 29:
- CDROM support. Not really important since Debian isn't using GRUB for CD boot atm, but it might be an interesting option for lenny.
  - 64-bit detection on x86: needed for multi-arch DVDs.

== Grub 2 and the VGA parameter ==
In Grub2 the {{{vga=}}} parameter is deprecated
<<FootNote(Althought the {{{vga=ext}}} option is deprecated with the {{{linux}}} command in Grub2, it is still available with the '''{{{linux16}}}''' command in Grub2 as it is with the {{{linux}}} command in Grub-legacy. If Grub2 displays "{{{vga=ext is deprecated. Use set gfxpayload=text before linux command instead}}}" you '''don't''' need to downgrade to grub-legacy. Just replace {{{linux}}} and {{{initrd}}} by {{{linux16}}} and {{{initrd16}}} in each {{{menuentry}}} bloc you want to use VGA mode and add {{{vga=ext}}} or {{{vga=F01}}} near the end of the {{{linux16}}} line to get 80x50 text consoles instead of framebuffer. You may also replace {{{ext}}} by {{{F00}}}, {{{F01}}}, {{{F02}}}, {{{F03}}}, {{{F05}}}, {{{F06}}} or {{{F07}}} to get alternate VGA text resolutions (respectively 80x25, 80x50, 80x43, 80x28, 80x30, 80x34 and 80x60). Use {{{vga=ask}}} to get a chance at boot time to list all available VGA/VESA resolutions and chose one interactively before Grub2 passes control to the kernel. If you edit /boot/grub/grub.cfg instead of /etc/grub.d/10_linux remember your changes will be dropped if {{{update-grub}}} is launched. By the way, {{{vga=normal}}} is equivalent to {{{vga=F00}}} and {{{vga=ext}}} is equivalent to {{{vga=F01}}}.)>>.

To set a screen resolution for your console you can do the following
log in as root

edit /etc/default/grub
uncomment the GRUB_GFXMODE=640x480 and change the resolution to something you can use e.g. 1024x768<<BR>>
Add the line <<BR>>
GRUB_GFXPAYLOAD_LINUX=keep <<BR>>
to the file to have the same resolution at the Linux console. You do not edit the 00_header file as some suggest you need to do.

run update-grub

run reboot to confirm that your changes worked!

----
CategoryBootProcess

Translation(s): English


This page is about migrating GRUB Legacy to GRUB 2.

Grub2 in Debian-Installer

Regressions

  • lock / password mechanism (done, see here how to use it)

  • Menu's default=saved / grub-reboot isn't implemented.

  • xen detection / setup in update-grub

Non-regression issues that may become essential (or at least, desirable) during lenny life period

  • Filesystems haven't been proof-tested with 64-bit offsets (2 TiB disks). Not really a regression (Legacy GRUB has the same problem), but it'll become critical in the future. There's a task for this in upstream: http://savannah.gnu.org/task/?7667

Grub 2 and the VGA parameter

In Grub2 the vga= parameter is deprecated 1.

To set a screen resolution for your console you can do the following log in as root

edit /etc/default/grub uncomment the GRUB_GFXMODE=640x480 and change the resolution to something you can use e.g. 1024x768
Add the line
GRUB_GFXPAYLOAD_LINUX=keep
to the file to have the same resolution at the Linux console. You do not edit the 00_header file as some suggest you need to do.

run update-grub

run reboot to confirm that your changes worked!


CategoryBootProcess

  1. Althought the vga=ext option is deprecated with the linux command in Grub2, it is still available with the linux16 command in Grub2 as it is with the linux command in Grub-legacy. If Grub2 displays "vga=ext is deprecated. Use set gfxpayload=text before linux command instead" you don't need to downgrade to grub-legacy. Just replace linux and initrd by linux16 and initrd16 in each menuentry bloc you want to use VGA mode and add vga=ext or vga=F01 near the end of the linux16 line to get 80x50 text consoles instead of framebuffer. You may also replace ext by F00, F01, F02, F03, F05, F06 or F07 to get alternate VGA text resolutions (respectively 80x25, 80x50, 80x43, 80x28, 80x30, 80x34 and 80x60). Use vga=ask to get a chance at boot time to list all available VGA/VESA resolutions and chose one interactively before Grub2 passes control to the kernel. If you edit /boot/grub/grub.cfg instead of /etc/grub.d/10_linux remember your changes will be dropped if update-grub is launched. By the way, vga=normal is equivalent to vga=F00 and vga=ext is equivalent to vga=F01. (1)