Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GRUB_RECORDFAIL_TIMEOUT option #7

Merged
merged 1 commit into from
Jun 10, 2015
Merged

Add support for GRUB_RECORDFAIL_TIMEOUT option #7

merged 1 commit into from
Jun 10, 2015

Conversation

ajlanghorn
Copy link
Contributor

GRUB2 includes a RECORDFAIL feature which means that the boot after a failed boot
will always stop at the boot menu. We can set a timeout value to stop headless systems
failing at this point. There is a difference between the TIMEOUT and RECORDFAIL_TIMEOUT
features, as the former will occur on all boots; the latter occurs only on the boot after a failed boot.

The GRUB_RECORDFAIL_TIMEOUT option allows users to set a default timeout
value to occur should a system running GRUB2 not receive any input at all at
a prompt. If the timeout value is reached, the system continues to boot
using whatever the first or otherwise selected option is. This is a
particularly useful setting on headless systems where stalling boots can cause
pain.

GRUB_RECORDFAIL_TIMEOUT takes an integer as it's value, which is the time in
seconds to wait before timing out and continuing the boot sequence.

This commit:

  • allows for recordfail_timeout to be set
  • validates that the value of recordfail_timeout is a string
  • adds the config option and value to the GRUB2 config, if set

@goldyfruit goldyfruit self-assigned this Jun 10, 2015
The GRUB_RECORDFAIL_TIMEOUT option allows users to set a default timeout
value to occur should a system running GRUB2 not receive any input at all at
a prompt. If the timeout value is reached, the system continues to boot
using whatever the first or otherwise selected option is. This is a
particularly useful setting on headless systems where stalling boots can cause
pain.

GRUB_RECORDFAIL_TIMEOUT takes an integer as it's value, which is the time in
seconds to wait before timing out and continuing the boot sequence.

This commit:
  - allows for recordfail_timeout to be set
  - validates that the value of recordfail_timeout is a string
  - adds the config option and value to the GRUB2 config, if set
@goldyfruit
Copy link
Owner

Thanks for the PR 👍

goldyfruit added a commit that referenced this pull request Jun 10, 2015
Add support for GRUB_RECORDFAIL_TIMEOUT option
@goldyfruit goldyfruit merged commit b439c82 into goldyfruit:master Jun 10, 2015
@ajlanghorn ajlanghorn mentioned this pull request Jun 10, 2015
@ajlanghorn ajlanghorn deleted the add-recordfail-timeout branch June 10, 2015 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants