Re: revert in grub2

2010-01-02 Thread Felix Zielcke
Am Freitag, den 01.01.2010, 23:05 +0300 schrieb Mihamina Rakotomandimby: > Manao ahoana, Hello, Bonjour, > > How to reproduce the "revert" LILO feature with GRUB2? > > I believe everyone here knows what it is, but a quick explanation for > those not knowing: > With LILO, I can setup a default ima

Re: [PATCH] spaces (label, UUID)

2010-01-02 Thread Carles Pina i Estany
Hi, On Jan/01/2010, Isaac Dupree wrote: > Carles Pina i Estany wrote: > >>>+grub_putchar (' '); > >>>+grub_printf_ (N_("- Label \"%s\""), label); > >>>... > >Avoiding to have trailing spaces helps the translators (they will do > >less mistakes). > > In this case i

Re: [PATCH] grub-probe support for NetBSD

2010-01-02 Thread Grégoire Sutre
Robert Millan wrote: On Tue, Dec 29, 2009 at 02:31:46AM +0100, Grégoire Sutre wrote: +#if defined(__NetBSD__) + /* Convert this block device to its character (raw) device */ + res = xmalloc (strlen (cwd) + strlen (ent->d_name) + 3); + sprintf (res, "%s/r%s", cwd, ent->d_n

Re: [PATCH] grub-probe support for NetBSD

2010-01-02 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Grégoire Sutre wrote: > Robert Millan wrote: >> On Tue, Dec 29, 2009 at 02:31:46AM +0100, Grégoire Sutre wrote: >>> +#if defined(__NetBSD__) >>> + /* Convert this block device to its character (raw) device */ >>> + res = xmalloc (strlen (cwd) + strlen (ent->d_name) + 3); >>> + sprint

Re: [PATCH] grub-probe support for NetBSD

2010-01-02 Thread Grégoire Sutre
Vladimir 'φ-coder/phcoder' Serbinenko wrote: One byte is cheap. No need for gimmicks just to save one byte. You can always allocate with +3 Ok :-) Grégoire ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-d

Disable -Werror when error attribute generates warnings

2010-01-02 Thread Grégoire Sutre
Hi, With an older version of gcc that does not understand the error attribute, gcc generates warnings when compiling files that include include/grub/list.h. Since TARGET_CFLAGS contains -Werror by default, the build of modules fails. The following patch checks whether the C compiler support

Re: Config file generation failure on Linux (gettext.sh)

2010-01-02 Thread Grégoire Sutre
Robert Millan wrote: A possible patch is given below, but there are surely other ways to deal with it. The patch simply falls back to echo instead of gettext if the gettext binary cannot be found. It'd be better if this was an autoconf check. You mean with an AC_PATH_PROG(GETTEXTBIN, get

Re: Disable -Werror when error attribute generates warnings

2010-01-02 Thread Colin Watson
On Sat, Jan 02, 2010 at 01:58:20PM +0100, Grégoire Sutre wrote: > With an older version of gcc that does not understand the error > attribute, gcc generates warnings when compiling files that include > include/grub/list.h. Since TARGET_CFLAGS contains -Werror by default, > the build of modul

Re: Disable -Werror when error attribute generates warnings

2010-01-02 Thread Grégoire Sutre
Colin Watson wrote: Instead of this, why not only use the attribute if it's available? I couldn't find an entry about it in GCC's human-readable change summaries, but support was committed on 2007-09-23 so I think it's available from GCC 4.3. I use this GNUC_PREREQ approach in other projects an

Re: Disable -Werror when error attribute generates warnings

2010-01-02 Thread Vladimir 'φ-coder/phcoder' Serbinenko
> =20 >> With an older version of gcc that does not understand the error =20 >> attribute, gcc generates warnings when compiling files that include =20 >> include/grub/list.h. Since TARGET_CFLAGS contains -Werror by default,= =20 >> the build of modules fails. >> >> The following patch checks wh

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

2010-01-02 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Robert Millan wrote: > On Mon, Dec 28, 2009 at 01:07:10PM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > >> Robert Millan wrote: >> >>> On Tue, Sep 01, 2009 at 05:37:11PM +0200, Vladimir 'phcoder' Serbinenko >>> wrote: >>> >>> Hello. I'm implementing video part of

commit script

2010-01-02 Thread Robert Millan
Hi, I made this script for my own use. It automatically reads the latest entry in ChangeLog and uses it as log to make a commit. Carles said he wanted a copy, but I figured it could be useful to others, so here you are. -- Robert Millan "Be the change you want to see in the world" -- Gandh

change strings main window

2010-01-02 Thread Carles Pina i Estany
Hi, Main window says "Press enter to boot the selected OS". Problems: a) not all entries are booting an OS (e.g. change colors) b) Grub usually loads a Kernel, not an OS c) (I thought to change because this one): some users maybe doesn't know what "OS" means Find a patch that re-words it a bit

ExperimentalBranch

2010-01-02 Thread Robert Millan
Hi! I wrote a small page in the wiki to document the experimental branch: http://grub.enbug.org/ExperimentalBranch It's being linked from GRUB website now. Feel free to improve and/or point users to it. -- Robert Millan "Be the change you want to see in the world" -- Gandhi __

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

2010-01-02 Thread Grégoire Sutre
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 there be a similar check in grub-setup? Currently, on NetBSD (with in-progress patches)