Re: [PATCH] Parse commandline in grub-xen

2015-05-12 Thread Olaf Hering
On Mon, May 11, Vladimir 'phcoder' Serbinenko wrote: > On May 11, 2015 7:08 PM, "Olaf Hering" wrote: > > And regarding $debug itself, with my change its set very early before > > any script runs. Perhaps that is useful to debug early issues. > > > Even if it is, it shouldn't be a side effect of b

Re: [PATCH 1/4] xfs: Add helper for inode size

2015-05-12 Thread Jan Kara
On Tue 12-05-15 08:26:26, Andrei Borzenkov wrote: > В Mon, 11 May 2015 14:15:48 +0200 > Jan Kara пишет: > > > On Mon 11-05-15 14:53:57, Andrei Borzenkov wrote: > > > В Mon, 14 Jul 2014 17:21:28 +0200 > > > Jan Kara пишет: > > > > > > > Signed-off-by: Jan Kara > > > > --- > > > > grub-core/fs/

Re: [PATCH] Parse commandline in grub-xen

2015-05-12 Thread Vladimir 'phcoder' Serbinenko
On May 12, 2015 10:06 AM, "Olaf Hering" wrote: > > On Mon, May 11, Vladimir 'phcoder' Serbinenko wrote: > > > On May 11, 2015 7:08 PM, "Olaf Hering" wrote: > > > And regarding $debug itself, with my change its set very early before > > > any script runs. Perhaps that is useful to debug early issu

[PATCH v1] Support DHCPv6 and UEFI IPv6 PXE

2015-05-12 Thread Michael Chang
This patch set tries to make support of configuring IPv6 network interface through the DHCPv6 protocol. A new command, net_bootp6, is therefore introduced to serve the purpose. You can think it as DHCPv6/IPv6 version of the existing net_bootp command. In addition to that, the UEFI IPv6 PXE support

[PATCH 1/3] Added net_bootp6 command

2015-05-12 Thread Michael Chang
The net_bootp6 is used to configure the ipv6 network interface through the DHCPv6 protocol Solict/Advertise/Request/Reply. --- grub-core/net/bootp.c | 895 - grub-core/net/ip.c| 35 ++ include/grub/net.h| 19 + 3 files changed, 948 inser

[PATCH 3/3] Update document for net_bootp6 command

2015-05-12 Thread Michael Chang
Update document for net_bootp6 command --- docs/grub.texi | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/docs/grub.texi b/docs/grub.texi index 4af22af..72780e3 100644 --- a/docs/grub.texi +++ b/docs/grub.texi @@ -5110,6 +5110,7 @@ List available video mod

[PATCH 2/3] UEFI IPv6 PXE support

2015-05-12 Thread Michael Chang
When system is booted from UEFI IPv6 PXE, the network interface can be configured directly by cached DHCPv6 packet in firmware without doing it all over again by contacting DHCP server. --- grub-core/net/drivers/efi/efinet.c | 24 --- include/grub/efi/api.h | 55 +++

Re: [PATCH] Parse commandline in grub-xen

2015-05-12 Thread Olaf Hering
On Tue, May 12, Vladimir 'phcoder' Serbinenko wrote: > > On May 12, 2015 10:06 AM, "Olaf Hering" wrote: > > > > On Mon, May 11, Vladimir 'phcoder' Serbinenko wrote: > > > > > On May 11, 2015 7:08 PM, "Olaf Hering" wrote: > > > > And regarding $debug itself, with my change its set very early bef

Re: Future of installing GRUB to LVM volumes (and loop devices)

2015-05-12 Thread Sebastian Pipping
On 05/07/2015 11:35 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: >> # grub-install --boot-directory=/mnt/loop-root/boot '(hd0)' ; echo $? >> /usr/sbin/grub-probe: error: cannot find a GRUB drive for >> /dev/mapper/loop0p1. Check your device.map. > Does this wotk with HEAD? With HEAD: Yes. Be

Re: [PATCH] Parse commandline in grub-xen

2015-05-12 Thread Vladimir 'phcoder' Serbinenko
On May 12, 2015 11:10 AM, "Olaf Hering" wrote: > > On Tue, May 12, Vladimir 'phcoder' Serbinenko wrote: > > > > > On May 12, 2015 10:06 AM, "Olaf Hering" wrote: > > > > > > On Mon, May 11, Vladimir 'phcoder' Serbinenko wrote: > > > > > > > On May 11, 2015 7:08 PM, "Olaf Hering" wrote: > > > > >

Re: Future of installing GRUB to LVM volumes (and loop devices)

2015-05-12 Thread Sebastian Pipping
On 05/06/2015 07:16 PM, Andrei Borzenkov wrote: > bor@opensuse:~/build/grub> findmnt /mnt > TARGET SOURCE FSTYPE OPTIONS > /mnt /dev/loop0p1 ext2 rw,relatime > bor@opensuse:~/build/grub> sudo ./grub-probe -t fs /mnt > ext2 > bor@opensuse:~/build/grub> sudo ./grub-probe -t partmap /mnt > m

Re: [RFC] grub-install: allow none or multiple install devices on PC BIOS

2015-05-12 Thread Michael Chang
On Fri, May 08, 2015 at 09:53:41PM +0300, Andrei Borzenkov wrote: > There are two main applications. > > 1. Omit install device to create generic image intended for chainloading > from other master loader. Such image can be put on any device (or file > system) and will still be able to find its $r

Re: Future of installing GRUB to LVM volumes (and loop devices)

2015-05-12 Thread Andrei Borzenkov
В Tue, 12 May 2015 12:41:19 +0200 Sebastian Pipping пишет: > > >> Auto-detection of a filesystem of /dev/mapper/loop0p1 failed. > >> Try with --recheck. > >> If the problem persists please report this together with the output of > >> "/usr/sbin/grub-probe --device-map="/mnt/loop-root/boot/grub/d

Re: [RFC] grub-install: allow none or multiple install devices on PC BIOS

2015-05-12 Thread Andrei Borzenkov
В Tue, 12 May 2015 18:52:22 +0800 Michael Chang пишет: > On Fri, May 08, 2015 at 09:53:41PM +0300, Andrei Borzenkov wrote: > > There are two main applications. > > > > 1. Omit install device to create generic image intended for chainloading > > from other master loader. Such image can be put on

Re: [PATCH 4/4] xfs: V5 filesystem format support

2015-05-12 Thread Jan Kara
On Tue 12-05-15 08:23:40, Andrei Borzenkov wrote: ... > > @@ -123,17 +144,6 @@ struct grub_xfs_inode > >grub_uint16_t unused3; > >grub_uint8_t fork_offset; > >grub_uint8_t unused4[17]; > > - union > > - { > > -char raw[156]; > > -struct dir > > -{ > > - struct grub_x

Re: [RFC] grub-install: allow none or multiple install devices on PC BIOS

2015-05-12 Thread Michael Chang
On Tue, May 12, 2015 at 02:57:00PM +0300, Andrei Borzenkov wrote: > В Tue, 12 May 2015 18:52:22 +0800 > Michael Chang пишет: > > > On Fri, May 08, 2015 at 09:53:41PM +0300, Andrei Borzenkov wrote: > > > There are two main applications. > > > > > It will abort, unfortunately. Changing it is real

Re: [RFC] grub-install: allow none or multiple install devices on PC BIOS

2015-05-12 Thread Michael Chang
On Tue, May 12, 2015 at 02:57:00PM +0300, Andrei Borzenkov wrote: > В Tue, 12 May 2015 18:52:22 +0800 > Michael Chang пишет: > > > On Fri, May 08, 2015 at 09:53:41PM +0300, Andrei Borzenkov wrote: > > > There are two main applications. > > > > > > 1. Omit install device to create generic image i

Re: [PATCH v2] grub-install: Install PV Xen binaries into the upstream specified path

2015-05-12 Thread Andrei Borzenkov
В Fri, 27 Mar 2015 16:40:14 +0100 Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 23.10.2014 23:28, Ian Campbell wrote: > > Upstream have defined a specification for where guests ought to place their > > xenpv grub binaries in order to facilitate chainloading from a stage 1 grub > > loaded from

[PATCH] remove extra newlines in grub_util_* strings

2015-05-12 Thread Andrei Borzenkov
grub_util_{info,warn,error} already add trailing newlines, so remove them from format strings. Also trailing full stops are already added. --- grub-core/bus/emu/pci.c| 2 +- grub-core/disk/lvm.c | 40 grub-core/osdep/linux/ofpath.c | 2

Re: [PATCH 4/4] xfs: V5 filesystem format support

2015-05-12 Thread Andrei Borzenkov
В Tue, 12 May 2015 15:47:40 +0200 Jan Kara пишет: > > > +{ > > > + return ((grub_uint8_t *)(de + 1)) + de->len - 1 + > > The outer parens are somehow confusing. > > I can remove them but I find it better to explicitely show where the > typecast happens with parenthesis... > OK > > + > > > +

Re: [PATCH] remove extra newlines in grub_util_* strings

2015-05-12 Thread Vladimir 'phcoder' Serbinenko
Go ahead On May 13, 2015 06:37, "Andrei Borzenkov" wrote: > grub_util_{info,warn,error} already add trailing newlines, so remove > them from format strings. Also trailing full stops are already added. > > --- > grub-core/bus/emu/pci.c| 2 +- > grub-core/disk/lvm.c | 40 > +