[PATCH V3] Backup old boot sectors before installation

2010-01-07 Thread 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. A new option -o|--restore (with optional argument)

GRUB 1.98 available in debian lenny, How to get fancy terminal ?

2010-01-07 Thread J. Bakshi
Hello everyone, I am happy to see the availability of grub 1.98 in debian lenny after the up-gradation I did yesterday night. The /boot/grub folder now contains unicode.pf2, unicode.ppf as well as GRUBtheme folder containing winter etc. theme. Is there any doc to configure the themes, vga term

Re: GRUB 1.98 available in debian lenny, How to get fancy terminal ?

2010-01-07 Thread Chris Jones
On Thu, Jan 07, 2010 at 09:29:57AM EST, J. Bakshi wrote: > Hello everyone, > > I am happy to see the availability of grub 1.98 in debian lenny after > the up-gradation I did yesterday night. The /boot/grub folder now > contains unicode.pf2, unicode.ppf as well as GRUBtheme folder > containing wi

Re: GRUB 1.98 available in debian lenny, How to get fancy terminal ?

2010-01-07 Thread Felix Zielcke
Am Donnerstag, den 07.01.2010, 10:13 -0500 schrieb Chris Jones: > On Thu, Jan 07, 2010 at 09:29:57AM EST, J. Bakshi wrote: > > > Hello everyone, > > > > I am happy to see the availability of grub 1.98 in debian lenny > after > > the up-gradation I did yesterday night. The /boot/grub folder now >

Re: GRUB 1.98 available in debian lenny, How to get fancy terminal ?

2010-01-07 Thread Colin D Bennett
On Thu, 07 Jan 2010 16:27:56 +0100 Felix Zielcke wrote: > Am Donnerstag, den 07.01.2010, 10:13 -0500 schrieb Chris Jones: > > The only docs about it that exist currently are the ones on Colin's > site AFAIK: > http://grub.gibibit.com/ > But they're outdated now, the theme format has been changed

Re: Check for device type (block/character) in grub-setup?

2010-01-07 Thread Grégoire Sutre
Robert Millan wrote: On Sun, Jan 03, 2010 at 03:54:49AM +0100, Grégoire Sutre wrote: Hi, I'm wondering why there is no check for device type (block/character) in grub-setup.c whereas the function probe() in grub-probe.c exits with error if the device is not of the expected type. Shouldn't t

Re: Grub EFI ia32 in QEMU using TianoCore EFI BIOS

2010-01-07 Thread Colin Ian King
Hi, I couldn't boot the EFI BIOS image from the qemu-tianocore-x64.tar.lzma tarball. I used version 0.11.0 of QEMU. Any ideas? Colin On Thu, 2009-12-24 at 22:00 +0100, Robert Millan wrote: > On Sun, Dec 20, 2009 at 09:30:31PM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > > Colin Ian K

Re: [RFC] Multiboot ammendment: non-VBE video

2010-01-07 Thread Robert Millan
On Mon, Jan 04, 2010 at 08:35:38PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Robert Millan wrote: > > > >> + .long 0 > >> + .long 1024 > >> + .long 768 > >> + .long 32 > >> > > > > Maybe better to use 640x480 instead? Not everyone has a large display. > > > > > It's onl

Re: [PATCH] Re: Bug in read_handler_list (autoloading) ???

2010-01-07 Thread Robert Millan
On Sun, Nov 15, 2009 at 12:10:24PM +0100, Robert Millan wrote: > On Sat, Nov 14, 2009 at 10:11:31PM +0100, Felix Zielcke wrote: > > Am Samstag, den 14.11.2009, 16:35 +0100 schrieb Robert Millan: > > > On Fri, Nov 13, 2009 at 11:43:52PM +0100, Vladimir 'phcoder' Serbinenko > > > wrote: > > > > Why

Re: [URGENT] Re: bazaar

2010-01-07 Thread Robert Millan
On Tue, Nov 24, 2009 at 07:50:29AM -0800, Colin D Bennett wrote: > > The ‘append_revisions_only’ option should probably be set for all > public branches to prevent accidental non-commit changes I didn't mention this back then, but append_revisions_only is in effect for most branches now. It's no

Re: [PATCH] Optimise scrolling by avoiding function calls and aligned memory copy

2010-01-07 Thread Robert Millan
On Mon, Nov 30, 2009 at 11:10:10AM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Available in experimental. In QEMU benchmark scrolling 1000 lines > decreased from 72s to 32s. Please can you merge this in trunk? -- Robert Millan "Be the change you want to see in the world" -- Gandhi

Re: meaning of absent --users prameters.

2010-01-07 Thread Robert Millan
On Sun, Dec 06, 2009 at 07:11:11PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Hello. Currently authentication system works as following: > > menuentry "name" --users "a,b,c" { > } > Means that only superusers and users "a", "b" and "c" are permitted to > boot this menuentry. To allow o

Re: autogen.sh warnings

2010-01-07 Thread Robert Millan
On Mon, Dec 07, 2009 at 06:13:33PM -0600, Bruce Dubbs wrote: > Vladimir 'φ-coder/phcoder' Serbinenko wrote: > >> Why can't Makefile.in moved to Makefile.am and then just let automake >> mostly copy Makefile.am to Makefile.in ? (I'm automake newbie), just an idea > > I've been invoking automake for

Re: [PATCH] Backup old boot sectors before installation

2010-01-07 Thread r...@aybabtu.com
On Tue, Dec 29, 2009 at 03:21:08PM +0800, Zhu Yi wrote: > On Tue, 2009-12-29 at 11:59 +0800, richardvo...@gmail.com wrote: > > > If we decide so, we go back to option 1 (my original > > implementation). > > > Because the backup file format is not important any more as it is > > > totally transparen

Re: [PATCH] Move environment context handling out of kernel.

2010-01-07 Thread Robert Millan
On Sun, Dec 20, 2009 at 02:26:14PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > This is a multi-part message in MIME format. > --040505020001050308040003 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: quoted-printable > > Hello, all. Rescue mode doesn'

Re: multi-terminal in experimental

2010-01-07 Thread Robert Millan
On Sat, Dec 26, 2009 at 05:39:09PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > -gfxmenu.mod is loaded. Do we need autoloading? I don't think official GRUB should autoload gfxmenu. Distributors are free to do that if they like. -- Robert Millan "Be the change you want to see in the

Re: Check for device type (block/character) in grub-setup?

2010-01-07 Thread Robert Millan
On Thu, Jan 07, 2010 at 06:31:02PM +0100, Grégoire Sutre wrote: > Robert Millan wrote: >> On Sun, Jan 03, 2010 at 03:54:49AM +0100, Grégoire Sutre wrote: >>> Hi, >>> >>> I'm wondering why there is no check for device type (block/character) >>> in grub-setup.c whereas the function probe() in grub-

Re: loader/efi/appleloader.c

2010-01-07 Thread Robert Millan
On Mon, Jan 04, 2010 at 02:10:44PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > They are device identifiers in EFI format. E.g. This > > static grub_uint8_t devpath_5[] = { > > 0x01, 0x03, 0x18, 0x00, 0x0B, 0x00, 0x00, 0x00, > > 0x00, 0x40, 0xCB, 0xFF, 0x00, 0x00, 0x00, 0x00, >

Re: GRUB Faq

2010-01-07 Thread Robert Millan
On Tue, Jan 05, 2010 at 12:08:28AM -0600, Bruce Dubbs wrote: > I've been working on grub.texi and I notice a reference to > http://www.gnu.org/software/grub/grub-faq.html. I will change that to > grub-2-faq.en.html before I submit it. Actually, I'd rather ditch the old FAQ and replace it comple

Re: GRUB Faq

2010-01-07 Thread Bruce Dubbs
Robert Millan wrote: On Tue, Jan 05, 2010 at 12:08:28AM -0600, Bruce Dubbs wrote: I've been working on grub.texi and I notice a reference to http://www.gnu.org/software/grub/grub-faq.html. I will change that to grub-2-faq.en.html before I submit it. Actually, I'd rather ditch the old FAQ an

Re: [RFC] Multiboot ammendment: non-VBE video

2010-01-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Robert Millan wrote: > >> Bootloader will use a mode it >> chooses. Perhaps we should remove recommended mode fields from the spec >> altogether or make them somehow optional >> > > Is that important? I'm hesitant to do that untill we have better > understanding > on what lead to this decisi

Re: [RFC] Tagged mbi

2010-01-07 Thread Robert Millan
On Mon, Jan 04, 2010 at 10:12:51PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Hello. Currently mbi contains a lot of pointers and substructures. It's > has various problems like: > -Unused fields occupy space if any subsequent fields is used. > -Difficult to relocate since it may be spi

Multiboot 2 branch (Re: [RFC] Tagged mbi)

2010-01-07 Thread Robert Millan
On Mon, Jan 04, 2010 at 10:12:51PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > --- include/multiboot.h 2010-01-02 17:50:06 + > +++ include/multiboot.h 2010-01-02 21:06:42 + > @@ -31,8 +31,11 @@ > /* This should be in %eax. */ > #define MULTIBOOT_BOOTLOADER_MAGIC

Re: EFI boot problem with MBP 5,4

2010-01-07 Thread Robert Millan
On Tue, Jan 05, 2010 at 05:15:02PM +, Daire Byrne wrote: > Hi, > > It looks like recent kernels (namely 2.6.31 and 2.6.32) can't find the > initrd when booting from grub (efi) on a macbook pro 5,4 giving the > error: > > RAMDISK: Couldn't find valid RAM disk image starting at 0. > > The 2.

Re: [RFC] Dynamic device.map

2010-01-07 Thread Robert Millan
On Wed, Jan 06, 2010 at 04:00:23PM +, Colin Watson wrote: > > Just leave it with (/dev/foo). > > You mean literally with the parentheses? I don't understand, since /dev/ > names will be unintelligible to GRUB when running outside an operating > system. Yes. This just means we'd have "set roo

Re: [RFC] Tagged mbi

2010-01-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Robert Millan wrote: > On Mon, Jan 04, 2010 at 10:12:51PM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > >> Hello. Currently mbi contains a lot of pointers and substructures. It's >> has various problems like: >> -Unused fields occupy space if any subsequent fields is used. >> -Difficu

Re: Invalid symbol table on NetBSD boot

2010-01-07 Thread Robert Millan
On Wed, Jan 06, 2010 at 07:07:29PM +0100, Grégoire Sutre wrote: > > A similar problem is mentioned in the archives of the mailing list [1]. > I tried to adapt the patch given in [1] to the current trunk, but with > no luck. I suggest you test if GRUB Legacy's Multiboot loader supports this pro

Re: error message

2010-01-07 Thread Robert Millan
On Wed, Jan 06, 2010 at 11:23:11PM +, Carles Pina i Estany wrote: > > (any problem to use the gcc macros to know the filename/line number? I > remember something and I cannot find it now) __FILE__ yields a significant code size increase. We have an outstanding problem with this. See: htt

Re: GRUB 1.98 available in debian lenny, How to get fancy terminal ?

2010-01-07 Thread Robert Millan
On Thu, Jan 07, 2010 at 08:33:24AM -0800, Colin D Bennett wrote: > > BTW, the theme document is also on the wiki at > . > > I am about to build GRUB for testing again, from the experimental > branch, and I can migrate my example themes to the new format. It > l

Re: GRUB 1.98 available in debian lenny, How to get fancy terminal ?

2010-01-07 Thread Robert Millan
On Thu, Jan 07, 2010 at 07:59:57PM +0530, J. Bakshi wrote: > Hello everyone, > > I am happy to see the availability of grub 1.98 That's very unlikely. I don't recall having released 1.98 yet ;-) -- Robert Millan "Be the change you want to see in the world" -- Gandhi __

Re: [RFC] Dynamic device.map

2010-01-07 Thread Bruce Dubbs
Robert Millan wrote: On Wed, Jan 06, 2010 at 04:00:23PM +, Colin Watson wrote: Just leave it with (/dev/foo). You mean literally with the parentheses? I don't understand, since /dev/ names will be unintelligible to GRUB when running outside an operating system. Yes. This just means we'd

Re: [RFC] Dynamic device.map

2010-01-07 Thread Colin Watson
On Thu, Jan 07, 2010 at 04:18:37PM -0600, Bruce Dubbs wrote: > Robert Millan wrote: >> On Wed, Jan 06, 2010 at 04:00:23PM +, Colin Watson wrote: Just leave it with (/dev/foo). >>> You mean literally with the parentheses? I don't understand, since /dev/ >>> names will be unintelligible to G

Re: GRUB 1.98 available in debian lenny, How to get fancy terminal ?

2010-01-07 Thread Colin D Bennett
On Thu, 7 Jan 2010 22:47:38 +0100 Robert Millan wrote: > On Thu, Jan 07, 2010 at 08:33:24AM -0800, Colin D Bennett wrote: > > > > BTW, the theme document is also on the wiki at > > . > > > > I am about to build GRUB for testing again, from the experimental > >

Re: GRUB 1.98 available in debian lenny, How to get fancy terminal ?

2010-01-07 Thread Robert Millan
On Thu, Jan 07, 2010 at 02:38:24PM -0800, Colin D Bennett wrote: > > When you say “existing fonts” do you mean there is a font other than > unifont? Not that we currently provide. -- Robert Millan "Be the change you want to see in the world" -- Gandhi __

Re: Invalid symbol table on NetBSD boot

2010-01-07 Thread Grégoire Sutre
Robert Millan wrote: I suggest you test if GRUB Legacy's Multiboot loader supports this properly, as the code I used derives from that. Yes, the problem disappears with GRUB Legacy's multiboot. Moreover, I noticed another issue: the command line is stripped (first word missing) with GRUB 2'

Re: [RFC] Dynamic device.map

2010-01-07 Thread Bruce Dubbs
Colin Watson wrote: On Thu, Jan 07, 2010 at 04:18:37PM -0600, Bruce Dubbs wrote: Robert Millan wrote: On Wed, Jan 06, 2010 at 04:00:23PM +, Colin Watson wrote: Just leave it with (/dev/foo). You mean literally with the parentheses? I don't understand, since /dev/ names will be unintelligi