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
cc_grub_dpkg: Added UEFI support #2029
Conversation
@holmanb Is there any chance to get this inside the upcoming version or too late? This bricks UEFI systems after a new |
Closed for now, found another issue which I need to investigate. //edit: Should be fine now. 👍🏻 |
I just found another issue with NVME disks. While SATA works fine the NVME and UEFI combination seems to fail. Fix is coming. // edit: I can't reproduce anymore. Will test further but maybe someone can help testing on UEFI too with another hardware type? Test procedure on Ubuntu: # Set invalid device, try to reinstall the package, apt-get throws an error, confirm the new disk
echo "set grub-efi/install_devices /dev/notexists1" | debconf-communicate
apt-get update && apt-get reinstall grub-efi-amd64-signed
# Set invalid device again, run cloud-init (with my changes), try reinstall again, no error
echo "set grub-efi/install_devices /dev/notexists1" | debconf-communicate
cloud-init --debug --force single --frequency always --name cc_grub_dpkg
apt-get update && apt-get reinstall grub-efi-amd64-signed |
It is too late, but if something is truly broken we can re-release / SRU.
By this do you mean that cloud-init is rendering the hardware unusable? So re-install fails after this occurs? |
@holmanb If it's an EFI machine, the BIOS So But maybe I am completely wrong and I misunderstood the whole thing here, at least with this change the errors disappearing on a fresh install in my case. Sadly I can't find any documentation on Debian or Ubuntu pages which explains the differences between grub-pc/install_devices and grub-efi/install_devices. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together @BirknerAlex, overall this looks really good.
I reproduced this issue and verified the solution today in a VM with OVMF.
I left a few minor comments inline. Once they're fixed, I'll merge.
@holmanb Thank you for the review. I am really happy that you were able to reproduce the issue on UEFI. I did fix all your comments and I'm thankful tor the feedback, let me know if you find anything else. |
Proposed Commit Message
Test Steps
Checklist: