DNS endianness

2014-09-22 Thread Andrei Borzenkov
This does not sound right ... static grub_err_t recv_hook (grub_net_udp_socket_t sock __attribute__ ((unused)), struct grub_net_buff *nb, void *data_) { ... head = (struct dns_header *) nb->data; ... for (i = 0; i < grub_cpu_to_be16 (head->qdcount); i++) { We sure wa

Re: [PATCH] grub-mkrescue: remove temporary load_cfg file

2014-09-22 Thread Andrei Borzenkov
В Sun, 21 Sep 2014 19:08:45 +0200 Vladimir 'φ-coder/phcoder' Serbinenko пишет: > I actually like to have load.cfg around: it helps with debugging in some > cases. Do you have a reason to remove it? On general principles that program has to cleanup after itself unless asked otherwise. load_cfg wa

[RFC PATCH] Add new partition type API and convert GPT type checks.

2014-09-22 Thread Michael Marineau
This introduces a new type() function for partmaps modeled after the label() and uuid() functions for filesystems. A likely future extension will be support partition labels and uuids as well. This is in preparation for adding more functionality like a search.part_type command. The msdos partition

Re: Probing misjudges ext2 partition as fat.

2014-09-22 Thread Andrei Borzenkov
В Mon, 22 Sep 2014 08:56:26 +0200 Andreas Krüger пишет: > > Unfortunately you destroyed any possibility to investigate it further. > > You should at least have saved beginning of partition. > > I should have, yes. Please kindly accept my apologies! > > On the other hand, I did nothing to destr

Re: [RFC PATCH] Add new partition type API and convert GPT type checks.

2014-09-22 Thread Andrei Borzenkov
В Mon, 22 Sep 2014 11:59:06 -0700 Michael Marineau пишет: > This introduces a new type() function for partmaps modeled after the > label() and uuid() functions for filesystems. A likely future extension > will be support partition labels and uuids as well. Is there other partition type beyond GP

Re: [RFC PATCH] Add new partition type API and convert GPT type checks.

2014-09-22 Thread Michael Marineau
On Mon, Sep 22, 2014 at 12:19 PM, Andrei Borzenkov wrote: > В Mon, 22 Sep 2014 11:59:06 -0700 > Michael Marineau пишет: > >> This introduces a new type() function for partmaps modeled after the >> label() and uuid() functions for filesystems. A likely future extension >> will be support partition

Having the configuration file embedded into core.img look for the grub partition by its label

2014-09-22 Thread Arbiel Perlacremaz
Hi A way I'm using to avoid any Window's reinstallation to overwrite GRUB in a multiboot environment is to install the later on the MBR of a USB key. That way, when booting with no key pluged, the PC boots into Windows and when booting with the key pluged, the PC boots according to the choice of t

Re: [RFC PATCH] Add new partition type API and convert GPT type checks.

2014-09-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 22.09.2014 20:59, Michael Marineau wrote: > This introduces a new type() function for partmaps modeled after the > label() and uuid() functions for filesystems. A likely future extension > will be support partition labels and uuids as well. This is in > preparation for adding more functionality

Re: [RFC PATCH] Add new partition type API and convert GPT type checks.

2014-09-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 22.09.2014 22:03, Michael Marineau wrote: > that is what I need to make use of and copying the code to re-read the > type field yet again felt silly. My final goal is actually a module > that will search for two partitions of the same type and select > between them based on some other metadata.

Re: Having the configuration file embedded into core.img look for the grub partition by its label

2014-09-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 22.09.2014 22:49, Arbiel Perlacremaz wrote: > Hi > > A way I'm using to avoid any Window's reinstallation to overwrite GRUB > in a multiboot environment is to install the later on the MBR of a USB > key. That way, when booting with no key pluged, the PC boots into > Windows and when booting wit

Re: [RFC PATCH] Add new partition type API and convert GPT type checks.

2014-09-22 Thread Michael Marineau
On Mon, Sep 22, 2014 at 4:06 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 22.09.2014 22:03, Michael Marineau wrote: >> that is what I need to make use of and copying the code to re-read the >> type field yet again felt silly. My final goal is actually a module >> that will search for two

Re: [RFC PATCH] Add new partition type API and convert GPT type checks.

2014-09-22 Thread Michael Marineau
On Mon, Sep 22, 2014 at 4:04 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 22.09.2014 20:59, Michael Marineau wrote: >> This introduces a new type() function for partmaps modeled after the >> label() and uuid() functions for filesystems. A likely future extension >> will be support partiti

Re: [PATCH] fix booting xenlinux kerenl error not on a xen domain

2014-09-22 Thread Michael Chang
On Sun, Sep 21, 2014 at 05:27:02PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 18.09.2014 10:58, Michael Chang wrote: > > There are two types of xen enabled kernel in linux, one is called > > xenlinux which is older and can only boot on xen domain but not on any > > real hardware with