[SeaBIOS] Re: [PATCH] Skip boot menu and timeout with only one boot device

2020-04-21 Thread Paul Menzel

Dear Gerd, Kevin, and Matt,


Am 21.04.20 um 14:22 schrieb Gerd Hoffmann:

I don't think this is a good change to make.  In the event a user is
intending to have multiple boot devices, but only one happens to be
present due to a failure of some kind then the machine may incorrectly
boot into the wrong device.  This would make troubleshooting worse.
If the user does not want the bootmenu then I think it would be best
for the user to explicitly configure the machine to not present a boot
menu.


Any further comments on this?

If not, I'm inclined to revert this change.



instead of reverting, I'd say just make it conditional on a runtime config
flag, maybe /etc/boot-menu-skip or similar?


We have a config option for the time seabios waits for the boot menu
keypress, so skipping the boot menu (unconditionally) can be configured
already.

The automatic in this patch (only offer the boot menu in case there is
something to choose, i.e. for example after plugging in a bootable usb
key) is a nifty idea, but I can see the trouble-shooting problems this
can bring (as outlined above).  So, no objections to revert this from
my side.


What do you think of extending the existing runtime configuration option 
`show-boot-menu`?



| show-boot-menu  | Controls the display of the boot menu. Set to 0 to 
disable the boot menu.


0: disable
1: show unconditionally
2: show if more than one device is present


Kind regards,

Paul
___
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-le...@seabios.org


[SeaBIOS] Re: [PATCH] Skip boot menu and timeout with only one boot device

2020-04-21 Thread Gerd Hoffmann
> > > I don't think this is a good change to make.  In the event a user is
> > > intending to have multiple boot devices, but only one happens to be
> > > present due to a failure of some kind then the machine may incorrectly
> > > boot into the wrong device.  This would make troubleshooting worse.
> > > If the user does not want the bootmenu then I think it would be best
> > > for the user to explicitly configure the machine to not present a boot
> > > menu.
> >
> > Any further comments on this?
> >
> > If not, I'm inclined to revert this change.
> >
> 
> instead of reverting, I'd say just make it conditional on a runtime config
> flag, maybe /etc/boot-menu-skip or similar?

We have a config option for the time seabios waits for the boot menu
keypress, so skipping the boot menu (unconditionally) can be configured
already.

The automatic in this patch (only offer the boot menu in case there is
something to choose, i.e. for example after plugging in a bootable usb
key) is a nifty idea, but I can see the trouble-shooting problems this
can bring (as outlined above).  So, no objections to revert this from
my side.

take care,
  Gerd
___
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-le...@seabios.org


[SeaBIOS] Re: [PATCH] Skip boot menu and timeout with only one boot device

2020-04-19 Thread Matt DeVillier
On Sun, Apr 19, 2020 at 10:40 AM Kevin O'Connor  wrote:

> On Tue, Mar 17, 2020 at 08:27:59PM -0400, Kevin O'Connor wrote:
> > On Mon, Mar 16, 2020 at 10:32:41AM +0100, Paul Menzel wrote:
> > > From: Matt DeVillier 
> > > Date: Fri, 13 Jun 2014 17:20:23 -0500
> > >
> > > Signed-off-by: Matt DeVillier 
> > > Signed-off-by: Paul Menzel 
> > > ---
> > > Upstream from https://github.com/MrChromebox/SeaBIOS/
> >
> > I don't think this is a good change to make.  In the event a user is
> > intending to have multiple boot devices, but only one happens to be
> > present due to a failure of some kind then the machine may incorrectly
> > boot into the wrong device.  This would make troubleshooting worse.
> > If the user does not want the bootmenu then I think it would be best
> > for the user to explicitly configure the machine to not present a boot
> > menu.
>
> Any further comments on this?
>
> If not, I'm inclined to revert this change.
>

instead of reverting, I'd say just make it conditional on a runtime config
flag, maybe /etc/boot-menu-skip or similar?


>
> Thanks,
> -Kevin
> ___
> SeaBIOS mailing list -- seabios@seabios.org
> To unsubscribe send an email to seabios-le...@seabios.org
>
___
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-le...@seabios.org


[SeaBIOS] Re: [PATCH] Skip boot menu and timeout with only one boot device

2020-04-19 Thread Kevin O'Connor
On Tue, Mar 17, 2020 at 08:27:59PM -0400, Kevin O'Connor wrote:
> On Mon, Mar 16, 2020 at 10:32:41AM +0100, Paul Menzel wrote:
> > From: Matt DeVillier 
> > Date: Fri, 13 Jun 2014 17:20:23 -0500
> > 
> > Signed-off-by: Matt DeVillier 
> > Signed-off-by: Paul Menzel 
> > ---
> > Upstream from https://github.com/MrChromebox/SeaBIOS/
> 
> I don't think this is a good change to make.  In the event a user is
> intending to have multiple boot devices, but only one happens to be
> present due to a failure of some kind then the machine may incorrectly
> boot into the wrong device.  This would make troubleshooting worse.
> If the user does not want the bootmenu then I think it would be best
> for the user to explicitly configure the machine to not present a boot
> menu.

Any further comments on this?

If not, I'm inclined to revert this change.

Thanks,
-Kevin
___
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-le...@seabios.org


[SeaBIOS] Re: [PATCH] Skip boot menu and timeout with only one boot device

2020-03-17 Thread Kevin O'Connor
On Mon, Mar 16, 2020 at 10:32:41AM +0100, Paul Menzel wrote:
> From: Matt DeVillier 
> Date: Fri, 13 Jun 2014 17:20:23 -0500
> 
> Signed-off-by: Matt DeVillier 
> Signed-off-by: Paul Menzel 
> ---
> Upstream from https://github.com/MrChromebox/SeaBIOS/

I don't think this is a good change to make.  In the event a user is
intending to have multiple boot devices, but only one happens to be
present due to a failure of some kind then the machine may incorrectly
boot into the wrong device.  This would make troubleshooting worse.
If the user does not want the bootmenu then I think it would be best
for the user to explicitly configure the machine to not present a boot
menu.

-Kevin
___
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-le...@seabios.org


[SeaBIOS] Re: [PATCH] Skip boot menu and timeout with only one boot device

2020-03-17 Thread Gerd Hoffmann
On Mon, Mar 16, 2020 at 10:32:41AM +0100, Paul Menzel wrote:
> From: Matt DeVillier 
> Date: Fri, 13 Jun 2014 17:20:23 -0500
> 
> Signed-off-by: Matt DeVillier 
> Signed-off-by: Paul Menzel 
> ---
> Upstream from https://github.com/MrChromebox/SeaBIOS/
> 
>  src/boot.c | 6 ++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/boot.c b/src/boot.c
> index afeb36a..ace3fa5 100644
> --- a/src/boot.c
> +++ b/src/boot.c
> @@ -670,6 +670,12 @@ interactive_bootmenu(void)
>  if (! CONFIG_BOOTMENU || !romfile_loadint("etc/show-boot-menu", 1))
>  return;
> 
> +// skip menu if only one boot device and no TPM
> +if ((NULL == BootList.first->next) && !tpm_can_show_menu()) {
> +   printf("\n");
> +   return;
> +}

Looks reasonable.

cheers,
  Gerd
___
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-le...@seabios.org