Re: powerpc/sparc problems

2009-10-16 Thread Pavel Roskin
On Fri, 2009-10-16 at 05:44 -0700, David Miller wrote: > From: Pavel Roskin > Date: Thu, 15 Oct 2009 18:41:41 -0400 > > > This makes me think that checks for __bswapsi2 and __bswapdi2 will fail > > on Sparc64, even if those functions are present and even if > > --disable-werror is used. > > The

Re: [PATCH] Refuse to install on XFS destroying its superblock

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Robert Millan wrote: > On Fri, Oct 16, 2009 at 11:08:31PM +0200, Vladimir 'phcoder' Serbinenko wrote: > >> Robert Millan wrote: >> >>> On Fri, Oct 16, 2009 at 10:09:41PM +0200, Vladimir 'phcoder' Serbinenko >>> wrote: >>> >>> Robert Millan wrote:

Re: [PATCH] Refuse to install on XFS destroying its superblock

2009-10-16 Thread Robert Millan
On Fri, Oct 16, 2009 at 11:08:31PM +0200, Vladimir 'phcoder' Serbinenko wrote: > Robert Millan wrote: > > On Fri, Oct 16, 2009 at 10:09:41PM +0200, Vladimir 'phcoder' Serbinenko > > wrote: > > > >> Robert Millan wrote: > >> > >>> On Fri, Oct 16, 2009 at 06:01:56PM +0200, Jordi Mallach wrot

Re: Using network informations from PXE as grub2 enviroment variables

2009-10-16 Thread Seth Goldberg
Quoting Vladimir 'phcoder' Serbinenko, who wrote the following on Fri, 16...: Seth Goldberg wrote: Hi, Quoting Pavel Pisa, who wrote the following on Fri, 16 Oct 2009: Nobody can't use options 150 from DHCP, because GRUB2 don't have any driver for network adapters. Network task are done on

Re: [GITGRUB] Support PXE option and new command pxecfg

2009-10-16 Thread Robert Millan
On Fri, Oct 16, 2009 at 07:30:03PM +0200, Vladimir 'phcoder' Serbinenko wrote: > We don't need to reinvent the wheel. We can import regexp parser from > GNU sed I think there's one in GNU libc too (see regcomp()). -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will deci

Re: [RFT,PATCH] Move embedding to appropriate partmap files

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Robert Millan wrote: > On Fri, Oct 16, 2009 at 12:58:42PM +0200, Vladimir 'phcoder' Serbinenko wrote: > >> Robert Millan wrote: >> >>> On Thu, Aug 13, 2009 at 10:53:23PM +0200, Vladimir 'phcoder' Serbinenko >>> wrote: >>> >>> >> We may want to embed more in the future. Actual

Re: [PATCH] Refuse to install on XFS destroying its superblock

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Robert Millan wrote: > On Fri, Oct 16, 2009 at 10:09:41PM +0200, Vladimir 'phcoder' Serbinenko wrote: > >> Robert Millan wrote: >> >>> On Fri, Oct 16, 2009 at 06:01:56PM +0200, Jordi Mallach wrote: >>> >>> On Fri, Oct 16, 2009 at 04:03:01PM +0200, Vladimir 'phcoder' Serbinenk

Re: [RFT,PATCH] Move embedding to appropriate partmap files

2009-10-16 Thread Robert Millan
On Fri, Oct 16, 2009 at 12:58:42PM +0200, Vladimir 'phcoder' Serbinenko wrote: > Robert Millan wrote: > > On Thu, Aug 13, 2009 at 10:53:23PM +0200, Vladimir 'phcoder' Serbinenko > > wrote: > > > We may want to embed more in the future. Actually I think it's not > ad-hoc. Basically par

Re: [GITGRUB] Support PXE option and new command pxecfg

2009-10-16 Thread Felix Zielcke
Am Freitag, den 16.10.2009, 19:30 +0200 schrieb Vladimir 'phcoder' Serbinenko: > >> We need an improvement to test command then. What about having > >> test -regexp > >> > > > > I think that's a little overkill, regular expression parser can be > > quite complex. > > > > > We don't need t

Re: Using network informations from PXE as grub2 enviroment variables

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Seth Goldberg wrote: > Hi, > > Quoting Pavel Pisa, who wrote the following on Fri, 16 Oct 2009: > Nobody can't use options 150 from DHCP, because GRUB2 don't have any driver for network adapters. Network task are done only through adapters PXE firmware. PXE passes informations only a

Re: [PATCH] Refuse to install on XFS destroying its superblock

2009-10-16 Thread Robert Millan
On Fri, Oct 16, 2009 at 10:09:41PM +0200, Vladimir 'phcoder' Serbinenko wrote: > Robert Millan wrote: > > On Fri, Oct 16, 2009 at 06:01:56PM +0200, Jordi Mallach wrote: > > > >> On Fri, Oct 16, 2009 at 04:03:01PM +0200, Vladimir 'phcoder' Serbinenko > >> wrote: > >> > >>> + if (memcmp (tm

Re: Using network informations from PXE as grub2 enviroment variables

2009-10-16 Thread Seth Goldberg
Hi, Quoting Pavel Pisa, who wrote the following on Fri, 16 Oct 2009: Nobody can't use options 150 from DHCP, because GRUB2 don't have any driver for network adapters. Network task are done only through adapters PXE firmware. PXE passes informations only about IP addresses, but no DHCP options.

Re: [GITGRUB] New menu interface (implementation)

2009-10-16 Thread Bean
Hi, Update: Optimize update algorithm for term widget, now it should only update the necessary regions. Fix prompt handling in term, you can't use backspace to erase prompt or use left to move before it, home would jump to position after the prompt. BTW, menu branch has been merged with master,

Re: [PATCH] Let user specify OpenBSD root device.

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Robert Millan wrote: > On Fri, Oct 16, 2009 at 01:00:31PM +0200, Vladimir 'phcoder' Serbinenko wrote: > >> Vladimir 'phcoder' Serbinenko wrote: >> >>> On Wed, Aug 26, 2009 at 2:34 AM, Robert Millan wrote: >>> >>> On Tue, Aug 25, 2009 at 10:37:33PM +0200, Vladimir 'phcoder' Se

Re: [PATCH] Refuse to install on XFS destroying its superblock

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Robert Millan wrote: > On Fri, Oct 16, 2009 at 06:01:56PM +0200, Jordi Mallach wrote: > >> On Fri, Oct 16, 2009 at 04:03:01PM +0200, Vladimir 'phcoder' Serbinenko >> wrote: >> >>> + if (memcmp (tmp_img, "XFSB", 4) == 0) >>> +grub_util_error ("Can't install on XFS."); >>> >> Can

Re: [GITGRUB] Support PXE option and new command pxecfg

2009-10-16 Thread Robert Millan
On Fri, Oct 16, 2009 at 10:45:08PM +0800, Bean wrote: > > Source is at http://github.com/bean123/grub/, master branch. Please could you attach it? -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threate

Re: [PATCH] Refuse to install on XFS destroying its superblock

2009-10-16 Thread Robert Millan
On Fri, Oct 16, 2009 at 06:01:56PM +0200, Jordi Mallach wrote: > On Fri, Oct 16, 2009 at 04:03:01PM +0200, Vladimir 'phcoder' Serbinenko wrote: > > + if (memcmp (tmp_img, "XFSB", 4) == 0) > > +grub_util_error ("Can't install on XFS."); > > Can this error message give some more detail on what

Re: [bug #27695] parser.sh ignores the closing quote when preceeded by a variable

2009-10-16 Thread Robert Millan
On Thu, Oct 15, 2009 at 03:28:02PM +0200, Vladimir 'phcoder' Serbinenko wrote: > diff --git a/script/sh/lexer.c b/script/sh/lexer.c > index a30e3c0..0c71dae 100644 > --- a/script/sh/lexer.c > +++ b/script/sh/lexer.c > @@ -350,9 +350,11 @@ grub_script_yylex (union YYSTYPE *yylval, struct > grub_par

Re: [BUGFIX] Fix rescue parser

2009-10-16 Thread Robert Millan
On Thu, Oct 15, 2009 at 03:06:42PM +0200, Vladimir 'phcoder' Serbinenko wrote: > > -- > Regards > Vladimir 'phcoder' Serbinenko > Personal git repository: http://repo.or.cz/w/grub2/phcoder.git > > diff --git a/ChangeLog b/ChangeLog > index b0864a9..55bdc92 100644 > --- a/ChangeLog > +++ b/Chan

Re: Handling multiple cores by GRUB

2009-10-16 Thread Robert Millan
On Thu, Oct 15, 2009 at 05:44:03PM +0100, James Courtier-Dutton wrote: > 2009/10/14 Robert Millan : > > But I don't think this would be desireable except in very specific > > situations, > > and I'm not sure which ones.  Perhaps loading a compressed file would be an > > example (so that uncompress

Re: [PATCH] Let user specify OpenBSD root device.

2009-10-16 Thread Robert Millan
On Fri, Oct 16, 2009 at 01:00:31PM +0200, Vladimir 'phcoder' Serbinenko wrote: > Vladimir 'phcoder' Serbinenko wrote: > > On Wed, Aug 26, 2009 at 2:34 AM, Robert Millan wrote: > > > >> On Tue, Aug 25, 2009 at 10:37:33PM +0200, Vladimir 'phcoder' Serbinenko > >> wrote: > >> > >>> + if (cmd

NEWS file

2009-10-16 Thread Robert Millan
Hi, Release is imminent. If you can, please review NEWS file for any missing noteworthy items before 1.97 is released. Thanks! -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom:

Re: [GITGRUB] Support PXE option and new command pxecfg

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Bean wrote: > On Sat, Oct 17, 2009 at 12:47 AM, Vladimir 'phcoder' Serbinenko > wrote: > >> Bean wrote: >> >>> On Fri, Oct 16, 2009 at 11:26 PM, Vladimir 'phcoder' Serbinenko >>> wrote: >>> >>> Hello. Could you send this as a patch? >>> Hi, >>> >>> This func

Re: [GITGRUB] Support PXE option and new command pxecfg

2009-10-16 Thread Bean
On Sat, Oct 17, 2009 at 12:47 AM, Vladimir 'phcoder' Serbinenko wrote: > Bean wrote: >> On Fri, Oct 16, 2009 at 11:26 PM, Vladimir 'phcoder' Serbinenko >> wrote: >> >>> Hello. Could you send this as a patch? >>> >> >> Hi, >> >> This function depends on my menu branch, it can't be applied to svn >

Re: [GITGRUB] Support PXE option and new command pxecfg

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Bean wrote: > On Fri, Oct 16, 2009 at 11:26 PM, Vladimir 'phcoder' Serbinenko > wrote: > >> Hello. Could you send this as a patch? >> > > Hi, > > This function depends on my menu branch, it can't be applied to svn > head, so patch file is not very useful. > > Could you explain me why PX

Re: Handling multiple cores by GRUB

2009-10-16 Thread richardvo...@gmail.com
On Thu, Oct 15, 2009 at 11:44 AM, James Courtier-Dutton wrote: > 2009/10/14 Robert Millan : >> But I don't think this would be desireable except in very specific >> situations, >> and I'm not sure which ones.  Perhaps loading a compressed file would be an >> example (so that uncompression and dis

Re: [GITGRUB] Support PXE option and new command pxecfg

2009-10-16 Thread Bean
On Fri, Oct 16, 2009 at 11:26 PM, Vladimir 'phcoder' Serbinenko wrote: > Hello. Could you send this as a patch? Hi, This function depends on my menu branch, it can't be applied to svn head, so patch file is not very useful. > Bean wrote: >> Hi, >> >> Extends pxe command: >> >> -i (--info)  now

Re: [PATCH] Refuse to install on XFS destroying its superblock

2009-10-16 Thread Jordi Mallach
On Fri, Oct 16, 2009 at 04:03:01PM +0200, Vladimir 'phcoder' Serbinenko wrote: > + if (memcmp (tmp_img, "XFSB", 4) == 0) > +grub_util_error ("Can't install on XFS."); Can this error message give some more detail on what the problem is? Jordi -- Jordi Mallach Pérez -- Debian developer

Re: [GITGRUB] Support PXE option and new command pxecfg

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Hello. Could you send this as a patch? Bean wrote: > Hi, > > Extends pxe command: > > -i (--info) now shows mac and dhcp options > -e (--export) export a dhcp option as grub variable, for example: > > pxe -e 150 > > Why can't this be exported unconditionally on pxe system startup? > Set variab

[GITGRUB] Support PXE option and new command pxecfg

2009-10-16 Thread Bean
Hi, Extends pxe command: -i (--info) now shows mac and dhcp options -e (--export) export a dhcp option as grub variable, for example: pxe -e 150 Set variable PXE_150 to the value of dhcp option 150, you can then use command like source to load it: source ${PXE_150} New command pxecfg, which

Re: powerpc/sparc problems

2009-10-16 Thread Pavel Roskin
Quoting David Miller : From: Pavel Roskin Date: Thu, 15 Oct 2009 18:41:41 -0400 This makes me think that checks for __bswapsi2 and __bswapdi2 will fail on Sparc64, even if those functions are present and even if --disable-werror is used. They worked perfectly fine for me on a real system w

Re: [PATCH] Refuse to install on XFS destroying its superblock

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Sorry, patch had a problem Vladimir 'phcoder' Serbinenko wrote: -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/ChangeLog b/ChangeLog index b0864a9..a67fdfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-10-16 V

Re: powerpc/sparc problems

2009-10-16 Thread David Miller
From: Pavel Roskin Date: Thu, 15 Oct 2009 18:41:41 -0400 > This makes me think that checks for __bswapsi2 and __bswapdi2 will fail > on Sparc64, even if those functions are present and even if > --disable-werror is used. They worked perfectly fine for me on a real system with a real compiler an

Re: Using network informations from PXE as grub2 enviroment variables

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Aleš Kapica wrote: > Dear friends, > > You have missunderstood my previous post from Thu, 15 Oct 2009 > 08:52:01 +0200 when I post patch, which fixies problem with > identification of the booting machine in network by IP address. > The following discussion have nothing to do with my post. I want to

Using network informations from PXE as grub2 enviroment variables

2009-10-16 Thread Aleš Kapica
Dear friends, You have missunderstood my previous post from Thu, 15 Oct 2009 08:52:01 +0200 when I post patch, which fixies problem with identification of the booting machine in network by IP address. The following discussion have nothing to do with my post. I want to clarify porpose of my pat

Re: [PATCH] Let user specify OpenBSD root device.

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Vladimir 'phcoder' Serbinenko wrote: > On Wed, Aug 26, 2009 at 2:34 AM, Robert Millan wrote: > >> On Tue, Aug 25, 2009 at 10:37:33PM +0200, Vladimir 'phcoder' Serbinenko >> wrote: >> >>> + if (cmd->state[OPENBSD_ROOT_ARG].set) >>> +{ >>> + const char *arg = cmd->state[OPENBSD_ROO

Re: [RFT,PATCH] Move embedding to appropriate partmap files

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
Robert Millan wrote: > On Thu, Aug 13, 2009 at 10:53:23PM +0200, Vladimir 'phcoder' Serbinenko wrote: > We may want to embed more in the future. Actually I think it's not ad-hoc. Basically partition map defines a function which gives back the sectors available for embedding.

[PATCH] Refuse to install on XFS destroying its superblock

2009-10-16 Thread Vladimir 'phcoder' Serbinenko
-- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/ChangeLog b/ChangeLog index b0864a9..a67fdfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-10-16 Vladimir Serbinenko + + * util/i386/pc/grub-setup.c (setup): Re