Re: Question: how to add new menu functionality

2011-04-22 Thread Colin Watson
On Fri, Apr 22, 2011 at 06:25:26PM -0400, Stephen Torri wrote: > Thanks for the help. The build code for 1.99 is much easier to navigate > than for 1.98. I downloaded the 1.99-rc2 source from the ftp site. > > As I worked on the code today I came up with four more questions on > developing grub2:

Re: Question: how to add new menu functionality

2011-04-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
> 1. This relates to the use of the kvm for testing a grub2 iso. How do > you scroll up and down in the view in the kvm window? > pager=1 > 2. How do you do unblocking I/O from stdin? There are ways to do it with > the select system call but it seems that there are only grub functions > that are s

Keyboard layouts (was Re: GRUB 1.99~rc2 released)

2011-04-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
> I have been really waiting for this, how do I use it? > ckbcomp /usr/share/X11/xkb/symbols/ch | grub-mklayout -o /boot/ch.gkb in grub.cfg: keymap /boot/ch.gkb terminal_input at_keyboard -- Regards Vladimir 'φ-coder/phcoder' Serbinenko signature.asc Description: OpenPGP digital signature

Luks inclusion (was Re: GRUB 1.99~rc2 released)

2011-04-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 21.04.2011 17:29, Craig Sparks wrote: > > When is luks going to be added so we can encrypt the boot partition also? > I've cleaned the patch (took a lot of time), not because I believe it's a useful feature but since it has become an often requested one. The branch is available at http://bzr.sav

Re: Question: how to add new menu functionality

2011-04-22 Thread Stephen Torri
Thanks for the help. The build code for 1.99 is much easier to navigate than for 1.98. I downloaded the 1.99-rc2 source from the ftp site. As I worked on the code today I came up with four more questions on developing grub2: 1. This relates to the use of the kvm for testing a grub2 iso. How do yo

[PATCH] Support * as field width or precision in printf

2011-04-22 Thread Josh Triplett
The attached patch implements support for * as the field width or precision in printf, which obtains that field width or precision from the next va_arg. This proves particularly useful as a modifier on %s: %.*s allows printing a non-NUL-terminated string with a known length. Tested with the follow

Re: Issues with grub.cfg

2011-04-22 Thread Seth Goldberg
On Apr 13, 2011, at 1:27 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 13.04.2011 01:41, Seth Goldberg wrote: >> It has been fixed and should boot fine with the latest opensolaris release. >> > Inspection revealed that this problem was indeed fixed. However trouble > was -B console=graph

Re: Question: how to add new menu functionality

2011-04-22 Thread Colin Watson
On Fri, Apr 22, 2011 at 06:03:41AM -0400, Stephen Torri wrote: > I am using the released grub-1.98 code for my development. I recommend using 1.99~rc2 or a current bzr checkout, if you can. Not just on general principles, but because its rewritten build system is really a great deal easier to mod

Question: how to add new menu functionality

2011-04-22 Thread Stephen Torri
I am using the released grub-1.98 code for my development. The problem I am having is how to add new functionality to the 'normal' module. I would like to add a new feature to the code using some functions that don't presently exist in the code. When I coded the functions I had to manually edit def