Re: [PATCH] Add linuxefi module

2014-01-21 Thread Colin Watson
On Tue, Jan 21, 2014 at 05:29:03PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > This part is from RH "Secureboot" patch. Few things are right about that > patch. Whatever signature verifications would need to be integrated with > signatures framework (I have some scratch in phcoder/file_t

Re: [PATCH] Improve DejaVuSans detection

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 21.01.2014 17:16, Andrey Borzenkov wrote: > Yes, I realized that. The problem is, unifont may be missing (user is > free to override it with GRUB_FONT) If user overrides our fonts and gets ugly display it's his fault. You can assume unifont availability. signature.asc Description: OpenPGP dig

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Dr. Tilmann Bubeck
The allocated space is reused every time on grub-setup execution. It does not change, as long as it is big enough. As Andrew said, by allocating 10 MB in the first run, it will be big enough for the foreseeable future (currently core.img on my system is 30k). After issuing the ioctl(EXT4_IOC

Re: [PATCH] Add linuxefi module

2014-01-21 Thread Leif Lindholm
On Tue, Jan 21, 2014 at 04:30:13PM +, Matthew Garrett wrote: > > Is it relevant for arm64-efi? > > Not at the moment - it still requires architecture-specific knowledge of > the boot protocol, and I don't think that's well-defined for arm64-efi > yet. Depends which bit of the boot protocol y

Re: [PATCH] Add linuxefi module

2014-01-21 Thread Matthew Garrett
On Tue, 2014-01-21 at 20:24 +0400, Andrey Borzenkov wrote: > В Tue, 21 Jan 2014 00:28:08 +0100 > Lubomir Rintel пишет: > > > > > module = { > > + name = linuxefi; > > + efi = loader/i386/efi/linux.c; > > + efi = lib/cmdline.c; > > + enable = i386_efi; > > + enable = x86_64_efi; > > +}; >

Re: [RFC] Allow separate boot block and core.img location?

2014-01-21 Thread Chris Murphy
On Jan 17, 2014, at 5:01 AM, joe faith wrote: > >> >> - Original Message - >> From: Chris Murphy >> Sent: 01/16/14 11:55 PM >> To: The development of GNU GRUB >> Subject: Re: [RFC] Allow separate boot block and core.img location? >> >> I must be having a problem counting: >> >> 1.

Re: [PATCH] normalize default prefix in grub-mkimage

2014-01-21 Thread Andrey Borzenkov
В Tue, 21 Jan 2014 08:19:24 +0100 Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 27.12.2013 18:41, Andrey Borzenkov wrote: > > This fixes bogus "C:\boot\grub" at runtime for Windows build as well as > > the case when /boot is on separate mount point for other systems. > > > grub-mkimage shoul

Re: [PATCH] add GRUB_WINDOWS_DLLS to make windowsdir to allow shipping runtime files

2014-01-21 Thread Andrey Borzenkov
В Tue, 21 Jan 2014 08:26:04 +0100 Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 19.01.2014 05:15, Andrey Borzenkov wrote: > > В Sun, 19 Jan 2014 02:23:41 +0100 > > Vladimir 'φ-coder/phcoder' Serbinenko пишет: > > > >> On 18.01.2014 17:26, Andrey Borzenkov wrote: > >>> export GRUB_EXTRA_DLLS

Re: [PATCH] add GRUB_WINDOWS_DLLS to make windowsdir to allow shipping runtime files

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Go ahead. On 21.01.2014 17:33, Andrey Borzenkov wrote: > В Tue, 21 Jan 2014 08:26:04 +0100 > Vladimir 'φ-coder/phcoder' Serbinenko пишет: > >> On 19.01.2014 05:15, Andrey Borzenkov wrote: >>> В Sun, 19 Jan 2014 02:23:41 +0100 >>> Vladimir 'φ-coder/phcoder' Serbinenko пишет: >>> On 18.01.201

Re: [PATCH] Add linuxefi module

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 21.01.2014 17:24, Andrey Borzenkov wrote: > В Tue, 21 Jan 2014 00:28:08 +0100 > Lubomir Rintel пишет: > >> >> module = { >> + name = linuxefi; >> + efi = loader/i386/efi/linux.c; >> + efi = lib/cmdline.c; >> + enable = i386_efi; >> + enable = x86_64_efi; >> +}; >> + > > Is it relevant

Re: [PATCH] Add linuxefi module

2014-01-21 Thread Andrey Borzenkov
В Tue, 21 Jan 2014 00:28:08 +0100 Lubomir Rintel пишет: > > module = { > + name = linuxefi; > + efi = loader/i386/efi/linux.c; > + efi = lib/cmdline.c; > + enable = i386_efi; > + enable = x86_64_efi; > +}; > + Is it relevant for arm64-efi? > +static grub_err_t > +grub_cmd_linux (grub_c

Re: [PATCH] Improve DejaVuSans detection

2014-01-21 Thread Andrey Borzenkov
В Tue, 21 Jan 2014 08:46:41 +0100 Vladimir 'φ-coder/phcoder' Serbinenko пишет: > > Prefer DejaVuSansMono if found, on openSUSE DejaVuSans is proportional font. > > > It's fine to use SansMono for terminal (I'd prefer unifont though) but > this change also changes the way various items in menu ar

Re: [PATCH] Improve DejaVuSans detection

2014-01-21 Thread Andrey Borzenkov
В Tue, 21 Jan 2014 08:40:39 +0100 Vladimir 'φ-coder/phcoder' Serbinenko пишет: > > --- a/themes/starfield/theme.txt > > +++ b/themes/starfield/theme.txt > > @@ -25,7 +25,7 @@ message-font: "DejaVu Sans Regular 12" > > message-color: "#000" > > message-bg-color: "#fff" > > terminal-box: "termin

Re: [PATCH] Add linuxefi module

2014-01-21 Thread SevenBits
On Jan 21, 2014, at 8:43 AM, Colin Watson wrote: > On Mon, Jan 20, 2014 at 08:46:48PM -0500, SevenBits wrote: >> On Monday, January 20, 2014, Lubomir Rintel wrote: >>> From: Matthew Garrett >>> >>> This adds linuxefi module that provides a way to load Linux kernel >>> and RAM disk image via EF

Re: [PATCH] Add linuxefi module

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 21.01.2014 14:43, Colin Watson wrote: > I would be inclined to say that linuxefi should be essentially an > internal implementation detail, and that linux should forward to > linuxefi if appropriate. Current 32-bit protocol is very useful on platforms like coreboot. Removing its use in GRUB com

Re: [PATCH] Add linuxefi module

2014-01-21 Thread Colin Watson
On Mon, Jan 20, 2014 at 08:46:48PM -0500, SevenBits wrote: > On Monday, January 20, 2014, Lubomir Rintel wrote: > > From: Matthew Garrett > > > > This adds linuxefi module that provides a way to load Linux kernel > > and RAM disk image via EFI services with linuxefi and initrdefi > > commands, an

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 21.01.2014 09:41, Andrey Borzenkov wrote: > On Tue, Jan 21, 2014 at 12:32 PM, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: >> On 21.01.2014 09:28, Andrey Borzenkov wrote: >>> On Tue, Jan 21, 2014 at 12:14 PM, Vladimir 'φ-coder/phcoder' >>> Serbinenko wrote: On 10.01.2014 08:49, Dr. Tilm

Re: booting btrfs

2014-01-21 Thread Michael Chang
On Tue, Jan 21, 2014 at 09:09:34AM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 13.01.2014 06:05, Michael Chang wrote: > > --split --run=10_linux,20_linux_xen > You shouldn't assume that only files you installed are the ones > available. E.g. memtest adds its own config to /etc/grub.

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Andrey Borzenkov
On Tue, Jan 21, 2014 at 12:32 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 21.01.2014 09:28, Andrey Borzenkov wrote: >> On Tue, Jan 21, 2014 at 12:14 PM, Vladimir 'φ-coder/phcoder' >> Serbinenko wrote: >>> On 10.01.2014 08:49, Dr. Tilmann Bubeck wrote: The blocklist is fixed an

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 21.01.2014 09:28, Andrey Borzenkov wrote: > On Tue, Jan 21, 2014 at 12:14 PM, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: >> On 10.01.2014 08:49, Dr. Tilmann Bubeck wrote: >>> >>> The blocklist is fixed and stable and will never change. >> What guarantees that it won't change on grub-setup i

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Andrey Borzenkov
On Tue, Jan 21, 2014 at 12:14 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 10.01.2014 08:49, Dr. Tilmann Bubeck wrote: >> >> The blocklist is fixed and stable and will never change. > What guarantees that it won't change on grub-setup invocation? I'm under > impression that it will change

Re: Booting from RAID (was: Re: booting btrfs)

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 13.01.2014 07:12, Andrey Borzenkov wrote: > On Mon, Jan 13, 2014 at 9:53 AM, Chris Murphy wrote: > >> There are other problems with Fedora that prevent this from being usable >> now, including grubby which can't update grub.cfg during kernel updates, >> when /boot is on a Btrfs subvolume. So

Re: [PATCH] Improve DejaVuSans detection

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 18.01.2014 18:04, Andrey Borzenkov wrote: > В Sat, 18 Jan 2014 17:26:16 +0100 > Vladimir 'φ-coder/phcoder' Serbinenko пишет: > >> On 18.01.2014 16:58, Andrey Borzenkov wrote: >>> Look also in /usr/share/fonts/truetype, it is installed in this path on >>> openSUSE. >>> >>> Prefer DejaVuSansMono

Re: [PATCH] Improve DejaVuSans detection

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 18.01.2014 16:58, Andrey Borzenkov wrote: > Look also in /usr/share/fonts/truetype, it is installed in this path on > openSUSE. > > Prefer DejaVuSansMono if found, on openSUSE DejaVuSans is proportional font. > > Add detected path name to summary output. > > --- > configure.ac | 13 -

Re: [PATCH] add GRUB_WINDOWS_DLLS to make windowsdir to allow shipping runtime files

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 19.01.2014 05:15, Andrey Borzenkov wrote: > В Sun, 19 Jan 2014 02:23:41 +0100 > Vladimir 'φ-coder/phcoder' Serbinenko пишет: > >> On 18.01.2014 17:26, Andrey Borzenkov wrote: >>> export GRUB_EXTRA_DLLS="/path/to/liblzma.dll /path/to/libintl.dll" >>> make >>> make windowszip >> Perhaps a better

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 10.01.2014 08:49, Dr. Tilmann Bubeck wrote: > > The blocklist is fixed and stable and will never change. What guarantees that it won't change on grub-setup invocation? I'm under impression that it will change on every grub-setup invocation as file gets recreated. signature.asc Description: O

Re: [PATCH] add a exit condition even for no stop case

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Go ahead for trunk On 20.01.2014 20:48, Paulo Flabiano Smorigo wrote: > Hi all, > > As I said in the my last email, I'm running tests in a network with > heavy traffic, like, over 150 arp requests comming every second. Under these > condition, I found an issue in the receive_packets function. > >

Re: booting btrfs

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 13.01.2014 06:05, Michael Chang wrote: > --split --run=10_linux,20_linux_xen You shouldn't assume that only files you installed are the ones available. E.g. memtest adds its own config to /etc/grub.d. To disable os-prober use GRUB_DISABLE_OS_PROBER signature.asc Description: OpenPGP digital

Re: [PATCH] look for DejaVu also in /usr/share/fonts/truetype

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Go ahead On 12.01.2014 13:15, Andrey Borzenkov wrote: > It is installed in this path on openSUSE. > > --- > configure.ac | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure.ac b/configure.ac > index 7c5d080..e80c074 100644 > --- a/configure.ac > +++ b/configure.ac

Re: [PATCH] increase network try interval gradually

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Go ahead for trunk. On 20.01.2014 20:29, Paulo Flabiano Smorigo wrote: > Hi all, > > This patch changes GRUB net interval gradually over time to avoid timeout > problems. I'm currently doing tests in a network with heavy traffic. In this > network GRUB fails with the original timeout value. > > -

Re: [PATCH] normalize default prefix in grub-mkimage

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 27.12.2013 18:41, Andrey Borzenkov wrote: > This fixes bogus "C:\boot\grub" at runtime for Windows build as well as > the case when /boot is on separate mount point for other systems. > grub-mkimage shouldn't perform any FS-based resolving, that's job of the caller. This default should either b