On 10/08/2020 21.27, Felix Miata wrote:
Carlos E.R. composed on 2020-08-10 20:53 (UTC+0200):
What I will do next is use a shorter name without the "_" char.
KISS (pure ASCII alphanumerics) WFM.:
# inxi -S System: Host: gb250 Kernel: 5.6.14-1-default x86_64 bits: 64 Desktop: Trinity R14.0.8 Distro: openSUSE Tumbleweed 20200628 # efibootmgr BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0000,0005,0003,0004 Boot0000* opensusetw Boot0003* Hard Drive Boot0004* CD/DVD Drive Boot0005* opensuse152 # ls -1 /boot/efi/EFI/ BOOT debian10 opensuse152 opensusetw ubuntu2004
Is there any ambiguity in the meaning of any of these?
Is there any in mine? Boot0000* main_opensuse-secureboot Boot0004* opensuse I wrote the name "main_opensuse", it is here: Telcontar:~ # grep GRUB_DISTRIBUTOR /etc/default/grub GRUB_DISTRIBUTOR="Main_openSUSE" Telcontar:~ # Then openSUSE added the "-secureboot" part. The "Boot0004* opensuse" entry is the original entry created by the installation. As I have two openSUSE systems in the same disk, and they both use the same "opensuse" name, I renamed both to something else (one "main_openSUSE", another "Auxiliary". (note that something also deleted "Auxiliary" The program "efibootmgr" doesn't complain of any problem with chars or lengths, but something else is changing the default "0000" to "0004", which fails because it is obsolete. If I delete that obsolete entry, that "something" again changes the default "0000" to boot a new entry it creates, "0001": Boot0001 UEFI OS that boots "/boot/efi/EFI/boot/bootx64.efi". Telcontar:~ # cat /boot/efi/EFI/boot/grub.cfg set btrfs_relative_path="yes" search --fs-uuid --set=root a977c5c3-259f-4df6-80e4-9f21a1ae96f5 set prefix=(${root})/grub2 source "${prefix}/grub.cfg" Telcontar:~ # That root is my /boot partition, same one as used by "Main_openSUSE", but the files are dated on March, so it will not boot. I will now set the name to "MainoS", but I want to use a separator between the two words, say "main-os", all lowercase. And the other to "aux". Without a separator the text is not clear to me. Notice that the whatever changed the BIOS wrote " UEFI OS" with a space. I did not use spaces. Trying. Telcontar:~ # grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... Found theme: /boot/grub2/themes/openSUSE/theme.txt Found linux image: /boot/vmlinuz-4.12.14-lp151.28.59-default Found initrd image: /boot/initrd-4.12.14-lp151.28.59-default Found linux image: /boot/vmlinuz-4.12.14-lp151.28.52-default Found initrd image: /boot/initrd-4.12.14-lp151.28.52-default ... Found openSUSE 11.4 (x86_64) on /dev/sdb4 done Telcontar:~ # Telcontar:~ # ls /boot/efi/EFI/ auxiliary boot main_opensuse no_opensuse Telcontar:~ # Not enough. No change in "efibootmgr". I will use YaST instead. Telcontar:~ # ls /boot/efi/EFI/ auxiliary boot main-os main_opensuse no_opensuse Telcontar:~ # Telcontar:~ # efibootmgr -v BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0002,0000,0001 Boot0000* main_opensuse-secureboot HD(1,GPT,800b649f-a2e3-4dad-b2bf-b7ecc5ef11d8,0x800,0xfa000)/File(\EFI\MAIN_OPENSUSE\SHIM.EFI) Boot0001 UEFI OS HD(1,GPT,800b649f-a2e3-4dad-b2bf-b7ecc5ef11d8,0x800,0xfa000)/File(\EFI\BOOT\BOOTX64.EFI)..BO Boot0002* main-os-secureboot HD(1,GPT,800b649f-a2e3-4dad-b2bf-b7ecc5ef11d8,0x800,0xfa000)/File(\EFI\main-os\shim.efi) Telcontar:~ # Huh. I will remove obsolete directories: \EFI\MAIN_OPENSUSE, \EFI\BOOT\, and try again. Telcontar:~ # l /boot/efi/EFI/ total 48 drwxr-xr-x 5 root root 8192 Aug 10 22:43 ./ drwxr-xr-x 4 root root 16384 Aug 10 22:41 ../ drwxr-xr-x 2 root root 8192 Mar 20 19:30 auxiliary/ drwxr-xr-x 2 root root 8192 Aug 10 22:43 boot/ drwxr-xr-x 2 root root 8192 Aug 10 22:39 main-os/ Telcontar:~ # Huh. Something created "boot" again, but this time with current files. Telcontar:~ # efibootmgr -v BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0002,0000,0001 Boot0000* main_opensuse-secureboot HD(1,GPT,800b649f-a2e3-4dad-b2bf-b7ecc5ef11d8,0x800,0xfa000)/File(\EFI\MAIN_OPENSUSE\SHIM.EFI) Boot0001 UEFI OS HD(1,GPT,800b649f-a2e3-4dad-b2bf-b7ecc5ef11d8,0x800,0xfa000)/File(\EFI\BOOT\BOOTX64.EFI)..BO Boot0002* main-os-secureboot HD(1,GPT,800b649f-a2e3-4dad-b2bf-b7ecc5ef11d8,0x800,0xfa000)/File(\EFI\main-os\shim.efi) Telcontar:~ # I will delete that "UEFI OS" entry, and the "main_opensuse-secureboot" entry. Telcontar:~ # efibootmgr -b 1 -B BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0002,0000 Boot0000* main_opensuse-secureboot Boot0002* main-os-secureboot Telcontar:~ # And I have, finally: Telcontar:~ # efibootmgr -v BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0002 Boot0002* main-os-secureboot HD(1,GPT,800b649f-a2e3-4dad-b2bf-b7ecc5ef11d8,0x800,0xfa000)/File(\EFI\main-os\shim.efi) Telcontar:~ # Now I will reboot, and find out if "something" again changes the entries. If it does, I will enter the BIOS to put the order correct, manually. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)