[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
Hi Julian, I have tested grub 2.06-2ubuntu3 in both BIOS and EFI mode on VMs, and I can confirm that your patches have fixed both of the issues I was seeing. Thanks for the quick turnaround! I will keep testing these packages, but it all seems good under secureboot. Thanks, Matthew -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
Marking as fix released then, as this was only a problem in proposed ** Changed in: grub2-signed (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
grub-efi-am64-signed/bin 2.06-2ubuntu3 update works as expected .. thank you for fixing -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
One of the debug calls accidentally resets grub_errno I guess. I have not investigated much where that happens. ** Changed in: grub2-signed (Ubuntu) Status: Incomplete => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
I had same EFI error: out of memory error: you need to load the kernel first. as I am using a "real pc" not a VM my question now is why would "set debug=all" fix this? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
note: booting windows partition is not affected .. only linux partitions fail to boot when debug is off .. i.e. normal state .. if another grub menu item is selected to boot linux w/o debug turned on it fails as described earlier .. lack of kernel memory etc. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
I found the cause for "Out of Memory" that Matthew reported, but not sure this is the same issue you are seeing, it seems you did not include the error, but both disappear with debugging enabled in a lot of scenarios. We had code to allocate the kernel at a preferred address and if it failed, fallback to a random one: kernel_mem = grub_efi_allocate_fixed(lh->pref_address, ▸ ▸ ▸ ▸ BYTES_TO_PAGES(lh->init_size)); if (!kernel_mem) kernel_mem = grub_efi_allocate_pages_max(0x3fff, ▸ ▸ ▸ ▸ ▸BYTES_TO_PAGES(lh->init_size)); It turns out than in the VM, the first call failed, but the 2nd one succeeded. Now the first call set `grub_errno` to `GRUB_ERR_OUT_OF_MEMORY`, whereas the 2nd does not touch the variable, so while we had success in practice, we still had an error set. Changing the code to kernel_mem = grub_efi_allocate_fixed(lh->pref_address, ▸ ▸ ▸ ▸ BYTES_TO_PAGES(lh->init_size)); if (!kernel_mem) { grub_errno = GRUB_ERR_NONE; kernel_mem = grub_efi_allocate_pages_max ( 0x3fff, BYTES_TO_PAGES (lh->init_size)); } fixes that issue. I hope it's the same on your machine. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
ok tried that .. to reduce the data spew I added: set pager=1 and set debug=all lines to the first grub menu selection .. this turns debugging on only if this menu is selected .. and although we got lots of output .. boot was normal .. if these lines were removed boot failed again .. this the Debug code is enclosing an essential bit in the menu processing section .. which becomes available when debug is turned on .. In my first test .. I added the debug lines in the initial part of grub.cfg .. this also booted normally after all the data spew.. So the debug code encloses and essential line .. check recent changes there is a bad oops.. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
Thanks for your bug report. To further evaluate this, we will need a complete dump of the grub log with set debug=all. Unfortunately, I cannot offer any advise on how to capture this, maybe recording the screen with a camera works? ** Tags added: regression-proposed ** Changed in: grub2-signed (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1954566] Re: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel
Hi Julian, Derk, I have been testing grub2-2.06-2ubuntu2 in -proposed in KVM, on both BIOS and EFI VMs, and both appear to be broken. On BIOS, grub2 doesn't get installed automatically, so I have to manually run "grub-install /dev/vda". When I do, I reboot into grub 2.06, and upon selecting a kernel, I see: error: premature end of file /vmlinuz-5.15.0-13-generic. error: you need to load the kernel first. Press any key to continue... On EFI, shim-signed installs grub 2.06, but when I reboot and select a kernel, I see: error: out of memory. error: you need to load the kernel first. Press any key to continue... EFI stub: ERROR: Failed to alocate usable memory for kernel. EFI stub: ERROR: efi_relocate_kernel() failed! EFI stub: ERROR: efi_main() failed! BdsDxe: failed to start Boot0004 "ubuntu" from HD(1,GPT,7165AAF-9AAE-4CD2-AEBC-6A8854B86CCD,0x800,0x10)/\EFI\ubuntu\shimx64.efi: Not Found I press enter, then: ERROR Could not install security protocol: (0x2) Invalid Parameter OK Something has gone seriously wrong: Invalid Parameter shim cannot continue, sorry. Both VMs fail to boot, causing this grub update to be a regression. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1954566 Title: jammy-proposed grub-efi-amd64-signed 1.175+2.06 2ubuntu2fails to find or load kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1954566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs