Merge lp:~cyphermox/debian-cd/timeouts into lp:~ubuntu-cdimage/debian-cd/ubuntu
| Status: | Merged |
|---|---|
| Merged at revision: | 1983 |
| Proposed branch: | lp:~cyphermox/debian-cd/timeouts |
| Merge into: | lp:~ubuntu-cdimage/debian-cd/ubuntu |
| Diff against target: |
97 lines (+36/-12) 3 files modified
tools/boot/bionic/boot-amd64 (+26/-12) tools/boot/bionic/boot-arm64 (+5/-0) tools/boot/bionic/boot-ppc64el (+5/-0) |
| To merge this branch: | bzr merge lp:~cyphermox/debian-cd/timeouts |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Steve Langasek | 2017-11-22 | Approve on 2017-11-29 | |
|
Review via email:
|
|||
Description of the Change
Better set timeouts for some flavours:
- Booting through GRUB (UEFI, non-gfxboot arches) should still timeout eventually and proceed to the default boot entry.
- ubuntu-server LIVE builds (subiquity) can timeout even earlier, after two seconds like desktop images without even showing keyboard options (but showing the accessibility icon at the bottom of the screen).
| Steve Langasek (vorlon) wrote : | # |
On Wed, Nov 22, 2017 at 11:34:53PM -0000, Mathieu Trudel-Lapierre wrote:
> Diff comments:
> > === modified file 'tools/
> > --- tools/boot/
> > +++ tools/boot/
> > @@ -202,7 +202,7 @@
> > HIDDEN_TIMEOUT=
> > if [ "$CDIMAGE_LIVE" = 1 ] && [ "$CDIMAGE_DVD" != 1 ]; then
> > case $PROJECT in
> > - ubuntu|
> > + ubuntu|
> This is a special case though, it only applies to live & gfxboot; not to
> grub. I agree it could be listed as exceptions, but I think there just
> aren't any. (I certainly can't think of one). For example, I think
> lubuntu is simply missing from that list (but should be in).
But it would still be better, in terms of maintainability and principle of
least surprise, to treat this as the default case (if we think it should be
default) and only call out the exceptions.
(If Lubuntu currently gets different behavior as a result of not being in
this list, then it should be called out as an exception. We shouldn't
change the behavior of Lubuntu as a part of this MP.)
> > HIDDEN_TIMEOUT=2
> > ;;
> > mythbuntu)
> > @@ -313,6 +313,13 @@
> > : > boot$N/
> > fi
> >
> > +# Set a timeout for GRUB; 15 seconds for everyone since users don't need to
> > +# pick a language, but should still have time to decide what boot option
> > +# (Try, Install, HWE, etc.) they want.
> > +cat >> $CDDIR/
> > +set timeout=15
> > +EOF
> > +
> There's currently some variability in the timeout, based on HIDDEN_TIMEOUT
> above and if unset, then only having a timeout in the keyboard selection
> prompts in gfxboot (300 (30 sec) if HIDDEN_TIMEOUT is unset, 50 (5 sec)
> otherwise); which changes what the user is "looking at" while the timeout
> counts down.
> I'm all for standardizing, but let's first agree on some standard, as well
> as where we "time out".
Yes, the timeout for gfxboot varies based on the HIDDEN_TIMEOUT setting.
But we capture that timeout value in a variable, and I see no reason why,
*for a given image*, we should not be using that same timeout value for both
grub and gfxboot.
| Mathieu Trudel-Lapierre (cyphermox) wrote : | # |
Inline comments. I'm fixing the pass for lubuntu; but the other change is on purpose.
| Steve Langasek (vorlon) wrote : | # |
> Inline comments. I'm fixing the pass for lubuntu; but the other change is on
> purpose.
OK. It would be better to have this clearly called out in the commit history; right now it looks like an unintended side-effect of a refactor.
- 1983. By Mathieu Trudel-Lapierre on 2017-11-29
-
Rework menu timeouts for images and make sure GRUB shares the same timeout values.
- 1984. By Mathieu Trudel-Lapierre on 2017-11-29
-
Standardize on 30 seconds timeout for server images booted in UEFI or BIOS mode. This is no change for live images that do no use hidden-timeout, they already had a timeout of 30 seconds.
| Simon Quigley (tsimonq2) wrote : | # |
What about Lubuntu Next (lubuntu-next)? Shouldn't that be there?

Suggested improvements inline.