I have a C940 14IIL dual-booted that can start from grub but Occasionally the grub boot process does not go though and will require power cycles to proceed normally. The failed states are:
[1] you need to load the kernel first
[2] minimal bash like line editing is supported…
I am a little confused as what can be done and have looked around such as Bootloading with GRUB2 and creating a new GRUB2 configuration.
[1] example
error: ../../grub-core/commands/efi/tpm.c:140:Command failed.
error: ../../grub-core/commands/efi/tpm.c:140:Command failed.
error: ../../grub-core/commands/efi/tpm.c:140:Command failed.
error: ../../grub-core/commands/efi/tpm.c:140:Command failed.
error: ../../grub-core/commands/efi/tpm.c:140:Command failed.
error: ../../grub-core/commands/efi/tpm.c:140:Command failed.
error: ../../grub-core/commands/efi/tpm.c:140:Command failed.
error: ../../grub-core/loader/i386/efi/linux.c:232:you need to load a kernel first.
Press any key to continue...
[2] example
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completion. Anywhere else TAB lists possible device or file completion.
grub>_
efibootmgr
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0003,0000,2001,2002,2003
Boot0000* Fedora
Boot0003* Windows Boot Manager
Boot0004* Fedora
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network
fdisk -l
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
/dev/nvme0n1p2 206848 239615 32768 16M Microsoft reserved
/dev/nvme0n1p3 239616 590569471 590329856 281,5G Microsoft basic data
/dev/nvme0n1p4 590569472 592666623 2097152 1G Linux filesystem
/dev/nvme0n1p5 999170048 1000212479 1042432 509M Windows recovery environment
/dev/nvme0n1p6 592666624 999170047 406503424 193,8G Linux filesystem
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
zram0 252:0 0 8G 0 disk [SWAP]
nvme0n1 259:0 0 476,9G 0 disk
├─nvme0n1p1 259:1 0 100M 0 part /boot/efi
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 281,5G 0 part
├─nvme0n1p4 259:4 0 1G 0 part /boot
├─nvme0n1p5 259:5 0 509M 0 part
└─nvme0n1p6 259:6 0 193,8G 0 part /home
/
I also found a bugzilla-thread that talks about what seems to an equivalent error but it seems it might be specific to fedora and some EFI firmware.
Any help is greatly appreciated