How to develop and integrate brand new module into GRUB2?

2013-09-26 Thread Vijayakumar Venganti
Dear Friends, I need to develop a new module and integrate into GRUB2. I already have the code written, my question is how to integrate the code into the existing GRUB2 build system so that the code gets built when make is entered at GRUB2's top level directory? My module is located at /grub2/gru

Re: How to develop and integrate brand new module into GRUB2?

2013-09-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 26.09.2013 09:28, Vijayakumar Venganti wrote: > Dear Friends, > > I need to develop a new module and integrate into GRUB2. I already have > the code written, my question is how to integrate the code into the > existing GRUB2 build system so that the code gets built when make is > entered at GRU

Re: [PATCH] Install to LVM PVs

2013-09-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 25.09.2013 14:39, Gabriel de Perthuis wrote: > Hello, > This patch lets grub install to a reserved area in LVM physical volumes. > These bootloader areas can be created with LVM 2.02.99 and the > --bootloaderareasize argument to pvcreate and vgconvert. > I tested it in QEMU, installing to and bo

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Lennart Sorensen
On Thu, Sep 26, 2013 at 03:08:54PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Hello, all. Recently I made some order in hostdisk.c and getroot.c > involving splitting in OS-specific parts. > In the same time I added WinAPI version of getroot/hostdisk allowing > grub-probe to work on win

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 26.09.2013 15:35, Lennart Sorensen wrote: > On Thu, Sep 26, 2013 at 03:08:54PM +0200, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: >> Hello, all. Recently I made some order in hostdisk.c and getroot.c >> involving splitting in OS-specific parts. >> In the same time I added WinAPI version of g

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Lennart Sorensen
On Thu, Sep 26, 2013 at 03:59:03PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > What kind of changes was it? Could we make them into some (possibly > hidden) options? Well for quite a while the logic was assuming apple powerpc, and it needed rework to make it work on the IBM powerpc syst

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Andrey Borzenkov
В Thu, 26 Sep 2013 15:08:54 +0200 Vladimir 'φ-coder/phcoder' Serbinenko пишет: > Hello, all. Recently I made some order in hostdisk.c and getroot.c > involving splitting in OS-specific parts. > In the same time I added WinAPI version of getroot/hostdisk allowing > grub-probe to work on windows na

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
> If we agree on bash as common denominator, bash has arrays which > make this straightforward. Unless we want to continue support for bash > 1.x. > This would step up the requirements. BSDs commonly have no bash installed. AROS probably has no bash available at all. AROS uses GRUB as its bootloa

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Seth Goldberg
Ditto here. I'd prefer it stay *sh. --S On Sep 26, 2013, at 6:35 AM, Lennart Sorensen wrote: > On Thu, Sep 26, 2013 at 03:08:54PM +0200, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: >> Hello, all. Recently I made some order in hostdisk.c and getroot.c >> involving splitting in OS-specific

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Kalamatee
Sounds great phcoder, Anything that removes grubs dependency on a *nix-specific environment has to be a good thing imho (or is it the grand *nix bootloader?) ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

trunk download choices

2013-09-26 Thread Beeblebrox
How can I checkout/download grub trunk? Is bzr the only option (http://bzr.savannah.gnu.org/r/grub/trunk/grub/)? Or is there any other alternative including svn, git, tarball? An alternative, even if not the latest version of what is in trunk, would be acceptable.

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 26.09.2013 16:44, Lennart Sorensen wrote: >> windows is low priority and more of a bonus. The problems of handling >> anything that looks like a list (e.g. list of devices where / resides on >> in case of btrfs) and code becoming hairy to handle those cases is >> bigger reason. > > Sure lists c

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 26.09.2013 19:10, Seth Goldberg wrote: > > Ditto here. I'd prefer it stay *sh. > Even if it would mean to go with bash? Solaris was one of the worst platforms for making grub-install work there due to its very limited shell and standard tools behaving differently. Frankly I wouldn't be surpr

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Darren J Moffat
On 09/26/13 19:51, Vladimir 'φ-coder/phcoder' Serbinenko wrote: On 26.09.2013 19:10, Seth Goldberg wrote: Ditto here. I'd prefer it stay *sh. Even if it would mean to go with bash? Solaris was one of the worst platforms for making grub-install work there due to its very limited shell and

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Seth Goldberg
Quoting Vladimir 'φ-coder/phcoder' Serbinenko, who wrote the following on...: On 26.09.2013 19:10, Seth Goldberg wrote: Ditto here. I'd prefer it stay *sh. Even if it would mean to go with bash? Solaris was one of the worst platforms for making grub-install work there due to its very lim

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Lennart Sorensen
On Thu, Sep 26, 2013 at 08:49:52PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > This is interesting testcase which wasn't brought before. This would > potentially involve creating several core.img or forcing UUID when using > multiple devices. Again, pretty easy in C and hairy in bash due

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 26.09.2013 22:22, Lennart Sorensen wrote: > On Thu, Sep 26, 2013 at 08:49:52PM +0200, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: >> This is interesting testcase which wasn't brought before. This would >> potentially involve creating several core.img or forcing UUID when using >> multiple de

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Chris Murphy
On Sep 26, 2013, at 2:22 PM, Lennart Sorensen wrote: > On Thu, Sep 26, 2013 at 08:49:52PM +0200, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: >> This is interesting testcase which wasn't brought before. This would >> potentially involve creating several core.img or forcing UUID when using >>

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 26.09.2013 22:51, Chris Murphy wrote: > > On Sep 26, 2013, at 2:22 PM, Lennart Sorensen > wrote: > >> On Thu, Sep 26, 2013 at 08:49:52PM +0200, Vladimir 'φ-coder/phcoder' >> Serbinenko wrote: >>> This is interesting testcase which wasn't brought before. This would >>> potentially involve cr

Re: [PATCH v6] load_env support for whitelisting, save_env support for check_signatures

2013-09-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Committed, thanks. On 27.09.2013 01:54, Jon McCune wrote: > Whitelisting which variables are read from an env file prevents a > malicious environment block file from overwriting the value of > security-critical environment variables such as check_signatures, > while still allowing a properly constr

Re: [PATCH v4 2/4] load_env support for whitelisting which variables are read from an env file, even if check_signatures=enforce

2013-09-26 Thread Andrey Borzenkov
В Wed, 25 Sep 2013 08:01:25 -0700 Jonathan McCune пишет: > > > > And please update also documentation for command changes. > > > > Do you mean grub.texi as well, or just within the source code? (e.g., for > 'help load_env') > I mean grub.texi ___

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Andrey Borzenkov
В Thu, 26 Sep 2013 20:49:52 +0200 Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 26.09.2013 16:44, Lennart Sorensen wrote: > >> windows is low priority and more of a bonus. The problems of handling > >> anything that looks like a list (e.g. list of devices where / resides on > >> in case of bt