-
Notifications
You must be signed in to change notification settings - Fork 75
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
Broken kernel.efi does not reboot automatically #36
Comments
@anonymouse64 I have taken a look at this, but couldn't reproduce exactly. If I create a kernel image with
and then I get to the grub menu, where I need to force a reboot to move forward and get the kernel reverted. To me, the Anyway, I tried grub's fallback feature with this grub configuration: Probably we should go through some cases with bad kernel images and give that some testing in the spread tests:
and probably some more... |
@alfonsosanchezbeato thanks for testing that, the grub.cfg you posted looks good to me. I don't have the original kernel.efi which triggered that double free anymore, I don't recall what I did to cause that, I may have just copied a junk file to the kernel.efi rather than all zeros like the All of those cases would be good, we do have this existing spread test which could be modified to handle these additional cases I think: https://github.com/snapcore/snapd/blob/master/tests/nested/core/core20-kernel-failover/task.yaml Though it is worth wondering whether the full test situations should live in snapd repo or somewhere else... as it seems all those other variants are more about grub's behavior than snapd's, but then again we do have grub.cfg inside snapd now so I suppose it makes sense. |
If I intentionally break the kernel.efi[1] in ubuntu-boot on a UC20 system, then grub does not reboot the system and instead hangs with the following message:
Additionally, pressing a key here (at least in QEMU) will drop me to the UEFI menu, where I would then have to manually reboot.
It would be great if grub could reboot automatically in this situation, because this may happen in the wild with a bad kernel snap update (where try-kernel.efi is corrupted like this) and then, if the system were rebooted, the grub.cfg on ubuntu-boot would trigger a rollback to the previous kernel.efi as without user intervention.
[1] I ran
if=/dev/zero of=kernel.efi count=1
The text was updated successfully, but these errors were encountered: