Bug 1201399 - update-bootloader does not update the EFI grub.cfg
update-bootloader does not update the EFI grub.cfg
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Bootloader
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Steffen Winterfeldt
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-07-12 08:36 UTC by Michal Suchanek
Modified: 2022-07-14 20:47 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Suchanek 2022-07-12 08:36:45 UTC
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootaa64.efi
971976 bytes read in 110 ms (8.4 MiB/s)
Booting /efi\boot\bootaa64.efi
Welcome to GRUB!

error: ../../grub-core/script/function.c:119:can't find command `'.


                                                                   GNU GRUB  version 2.06

   Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or 
   file completions.                                                                                                                                   


grub> con
Possible commands are:

 configfile continue
grub> con
Possible commands are:

 configfile continue
grub> configfile (  
Possible devices are:

 proc hd0
grub> configfile (hd0,
Possible partitions are:

        Partition hd0,gpt1: Filesystem type fat, UUID ADC6-7C17 - Partition start at 1024KiB - Total size 131072KiB
        Partition hd0,gpt2: No known filesystem detected - Partition start at 132096KiB - Total size 31034863.5KiB

grub> configfile (hd0,gpt2)/efi/op
grub> configfile (hd0,gpt2)/efi/ope
grub> configfile (hd0,gpt2)/efi/ope
grub> configfile (hd0,gpt2)        
grub> configfile (hd0,gpt2)
grub> configfile (hd0,gpt2)
grub> configfile (hd0,gpt2)
grub> configfile (hd0,gpt1)/efi/opensuse/gr
Possible files are:

 grubaa64.efi grub.cfg
grub> configfile (hd0,gpt1)/efi/opensuse/grub.cfg
Comment 1 Christian Boltz 2022-07-14 20:34:35 UTC
I slightly ;-) doubt that this is related to AppArmor - moving to bootloader...
Comment 2 Michal Suchanek 2022-07-14 20:43:19 UTC
yes, and the problem is that there are two grub.cfg files:

/boot/efi/EFI/boot/grub.cfg
/boot/efi/EFI/opensuse/grub.cfg

and the /boot/efi/EFI/boot/grub.cfg was garbage for some reason.

Running update-bootloader did not fix the problem, only copying /boot/efi/EFI/opensuse/grub.cfg to /boot/efi/EFI/boot/ by hand.