Re: [PATCH] [RFC] Add exitcode support

2016-01-25 Thread Vladimir 'phcoder' Serbinenko
Agreed сб, 23 янв. 2016, 9:26, Andrei Borzenkov : > 22.01.2016 22:06, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > > On 18.08.2015 21:17, Ben Hildred wrote: > >> Let's assume for a minute that I have compiled grub as a multiboot image > >> and have called it from another bootloader, say iPXE.No

Re: [PATCH] [RFC] Add exitcode support

2016-01-23 Thread Andrei Borzenkov
22.01.2016 22:06, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 18.08.2015 21:17, Ben Hildred wrote: >> Let's assume for a minute that I have compiled grub as a multiboot image >> and have called it from another bootloader, say iPXE.Now iPXE assumes >> that any false return is an error. What ha

Re: [PATCH] [RFC] Add exitcode support

2016-01-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 18.08.2015 21:17, Ben Hildred wrote: > Let's assume for a minute that I have compiled grub as a multiboot image > and have called it from another bootloader, say iPXE.Now iPXE assumes > that any false return is an error. What happens when grub returns with > exit next, does iPXE get a true or fa

Re: [PATCH] [RFC] Add exitcode support

2015-08-18 Thread Dann Frazier
On Tue, Aug 18, 2015 at 1:17 PM, Ben Hildred <426...@gmail.com> wrote: > > > On Tue, Aug 18, 2015 at 12:56 PM, Dann Frazier > wrote: >> >> On Tue, Aug 18, 2015 at 12:03 PM, Ben Hildred <426...@gmail.com> wrote: >> > I only briefly scanned this, but this is cool (at least the idea is >> > something

Re: [PATCH] [RFC] Add exitcode support

2015-08-18 Thread Ben Hildred
On Tue, Aug 18, 2015 at 12:56 PM, Dann Frazier wrote: > On Tue, Aug 18, 2015 at 12:03 PM, Ben Hildred <426...@gmail.com> wrote: > > I only briefly scanned this, but this is cool (at least the idea is > > something I want to see implemented everywhere it makes sense to do so). > > Cool, thanks for

Re: [PATCH] [RFC] Add exitcode support

2015-08-18 Thread Dann Frazier
On Tue, Aug 18, 2015 at 12:03 PM, Ben Hildred <426...@gmail.com> wrote: > I only briefly scanned this, but this is cool (at least the idea is > something I want to see implemented everywhere it makes sense to do so). Cool, thanks for the feedback :) > Just one humdinger of a question: does efi as

Re: [PATCH] [RFC] Add exitcode support

2015-08-18 Thread Ben Hildred
I only briefly scanned this, but this is cool (at least the idea is something I want to see implemented everywhere it makes sense to do so). Just one humdinger of a question: does efi assume nonzero is an error? Does platform X assume a nonzero exit is an error? Do we want to assume nonzero is an

[PATCH] [RFC] Add exitcode support

2015-08-18 Thread dann frazier
Some platforms are capable of changing behavior based on the bootloader exit code. In particular, UEFI boot managers use this code to determine if they should try the next boot entry or not. I'd like to use this as a way to make my PXE server tell clients to attempt to boot from their next entry (p