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

Fixes #30072 - update grub default template #598

Merged
merged 1 commit into from
Sep 11, 2020

Conversation

lzap
Copy link
Member

@lzap lzap commented Jun 9, 2020

This happened now the third time and it took us to figure it out. Our installer deploys a copy of "PXEGrub2 global default" template which is susppoed to be overwirten after Build PXE default is clicked. However we never keep it up to date and we are getting feedback that "sometimes" the default template does not work well as we change it over the releases.

This is the definitive solution to this - users are asked to click on the button before they attempt to boot unknown hosts. This solves the issue (the template does not work for UEFI HTTP booted hosts) and prevents from this in the future.

@tbrisker
Copy link
Member

TBH I'm surprised we include this template in the puppet module at all, why is this needed?

files/grub.cfg Outdated
echo "to create the default global grub.cfg configuration."
echo "This system will poweroff shortly."
sleep 900
poweroff
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a very extreme response to me, especially given the fact that this can concern remote h/w hosts.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest something better that prevents confused users when this template does not work. Problem is that by default we try to chainload EFI from ESP here and this has been broken multiple times already. I change it way too often and forget it's here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's happening without the poweroff?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That depends on the firmware I guess, but for libvirt it's grub shell. I can remove that poweroff if you want, I just wanted to prevent endless loops.

@lzap
Copy link
Member Author

lzap commented Jun 16, 2020

@tbrisker it surprised me three times already. My long-term memory is as bad as my short-term memory. On the other hand, I often enjoy my favourite films over and over again :-)

@ares
Copy link
Member

ares commented Sep 7, 2020

@lzap what is the status shere? can you rebase please? will the removal of poweroff make this mergeable?

@lzap lzap force-pushed the definitive-default-grub-30072 branch from f4185e0 to 77dc519 Compare September 7, 2020 09:01
@lzap
Copy link
Member Author

lzap commented Sep 7, 2020

Rebased, removed the poweroff command.

@lzap lzap force-pushed the definitive-default-grub-30072 branch from 77dc519 to c59191b Compare September 8, 2020 14:22
@lzap
Copy link
Member Author

lzap commented Sep 8, 2020

Fixed the test.

@lzap
Copy link
Member Author

lzap commented Sep 9, 2020

Tests are green.

@lzap lzap force-pushed the definitive-default-grub-30072 branch from c59191b to 315b389 Compare September 11, 2020 12:51
Copy link
Member

@ares ares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better (smaller change), thanks @lzap, merging!

@ares ares merged commit 82fce2c into theforeman:master Sep 11, 2020
@lzap lzap deleted the definitive-default-grub-30072 branch September 11, 2020 13:13
@wbclark wbclark added the Bug label Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants