[PATCH 1/2] Backup old boot sectors before installation

2010-01-06 Thread Zhu Yi
From: Zhu Yi Make grub-setup backup the old boot sectors into a file (bootsectors.bak) before overwriting it. The backup image starts from the MBR to the end of core.img position (including embed regions). This makes it possible for a user to later restore it with dd or other methods. Signed-off

[PATCH 2/2] Add grub-install --restore option

2010-01-06 Thread Zhu Yi
From: Zhu Yi Add the --restore option to restore the previous boot sectors from a backup image (created by grub-setup). A simple `dd` won't work when partitioning has been changed after the backup. In this case, a script is useful as it only restores the MBR and the boot sectors overwritten by co

Re: [PATCH 2/2] Add grub-install --restore option

2010-01-06 Thread Robert Millan
Hi, On Wed, Jan 06, 2010 at 05:10:04PM +0800, Zhu Yi wrote: > diff --git a/util/i386/pc/grub-install.in b/util/i386/pc/grub-install.in > index 8a06213..4d0043e 100644 > --- a/util/i386/pc/grub-install.in > +++ b/util/i386/pc/grub-install.in > @@ -51,6 +51,7 @@ no_floppy= > force_lba= > recheck=

Re: Embedding area too small... (GRUB2 on software RAID1)

2010-01-06 Thread Lapohos Tibor
Please find a correction to the description of the problem. --- On Tue, 1/5/10, Lapohos Tibor wrote: > ... and I got a warning and an error message: > "Embedding area is too small for > core.img." and ... It rather reads: "Your embedding area is unusually small. core.img won't fit in it." T

Re: [RFC] Dynamic device.map

2010-01-06 Thread Colin Watson
On Sat, Dec 26, 2009 at 02:25:51PM +0100, Robert Millan wrote: > On Thu, Dec 24, 2009 at 10:18:27PM +0100, Robert Millan wrote: > > Colin Watson wrote: > > > No, I don't think we will. grub-probe is perfectly capable of mapping > > > /dev/sda1 to (hd0,1) even without device.map; > > > > I wasn't v

Invalid symbol table on NetBSD boot

2010-01-06 Thread Grégoire Sutre
Hi, When booting a NetBSD 5.0 (i386 or amd64) kernel with knetbsd (as per docs/grub.cfg), the first message displayed by the NetBSD kernel is: [ Kernel symbol table invalid! ] and after boot, the device /dev/ksyms is not configured. The same problem occurs with multiboot instead of knetbsd (fo

[BRANCH] Bidi support.

2010-01-06 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Hello, all. I'm here to announce initial bidi support in one of my branches, namely people/phcoder/bidi. For now it has following limitation: -Only gfxmenu support. So no support in terminal (even not in gfxterm) -No line wrapping (not necessary currently since draw_string draws only one line) -No

Re: [BRANCH] Bidi support.

2010-01-06 Thread Bruce Dubbs
Vladimir 'φ-coder/phcoder' Serbinenko wrote: Hello, all. I'm here to announce initial bidi support in one of my branches, namely people/phcoder/bidi. Looks very nice. Is there a location where the grub.cfg file that generated the image can be viewed? -- Bruce __

Re: [BRANCH] Bidi support.

2010-01-06 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Bruce Dubbs wrote: > Vladimir 'φ-coder/phcoder' Serbinenko wrote: >> Hello, all. I'm here to announce initial bidi support in one of my >> branches, namely people/phcoder/bidi. > > Looks very nice. > Thanks > Is there a location where the grub.cfg file that generated the image > can be viewed? Att

Re: GRUB update problems

2010-01-06 Thread Henry W. Peters
Henry W. Peters wrote: Felix Zielcke wrote: Am Dienstag, den 05.01.2010, 13:58 -0500 schrieb Henry W. Peters: Then I did check the /etc/default/grub file, & this is what I got (I took out the '# at the GRUB_GFXMODE=1440x900' & changed the resolution... I tried doing an '#update-grub' both in

Re: [BRANCH] Bidi support.

2010-01-06 Thread Bruce Dubbs
Vladimir 'φ-coder/phcoder' Serbinenko wrote: Bruce Dubbs wrote: Is there a location where the grub.cfg file that generated the image can be viewed? Attached. Mostly based on Colin's overlay grub.cfg. Excellent. It helps me a lot. -- Bruce _

error message

2010-01-06 Thread Carles Pina i Estany
Hello, Last part to add gettext support is loader/*. Specially some grub_error messages, since some of them appears to the standard user. I thought to translate the common ones only, but it's a bit difficult to know the "common ones". Then the appraoch is to add gettext support to all grub_error

Re: [PATCH 2/2] Add grub-install --restore option

2010-01-06 Thread Zhu Yi
On Wed, 2010-01-06 at 21:50 +0800, Robert Millan wrote: > Hi, > > On Wed, Jan 06, 2010 at 05:10:04PM +0800, Zhu Yi wrote: > > diff --git a/util/i386/pc/grub-install.in b/util/i386/pc/grub-install.in > > index 8a06213..4d0043e 100644 > > --- a/util/i386/pc/grub-install.in > > +++ b/util/i386/pc/gru

Re: [PATCH 2/2] Add grub-install --restore option

2010-01-06 Thread Robert Millan
On Thu, Jan 07, 2010 at 09:10:05AM +0800, Zhu Yi wrote: > > > > Please don't add this to grub-install. This kind of highly BIOS-specific > > logic would suit much better in grub-setup. > > Do you prefer to implement above in C code and add a "--restore" option > to grub-setup or create a separat

Re: Problems with grub-reboot/savedefault/default=saved

2010-01-06 Thread Jordan Uggla
On Tue, Jan 5, 2010 at 3:08 AM, Colin Watson wrote: >> 2: Setting GRUB_DEFAULT=saved in /etc/default/grub also enables savedefault >> functionality. There are many people who would want to use grub-reboot and >> grub-set-default without savedefault. The second patch adds a separate >> variable, GR