Max Nikulin composed on 2024-08-22 10:17 (UTC+0700): > Felix Miata wrote:
>> My BBS menu contains 4 entries corresponding to output from efibootmgr, >> with the highlight on the one beginning "opensusetw", as configured via >> GRUB_DISTRIBUTOR=. > Or it just coincides with the configured value. /etc/default/grub's GRUB_DISTRIBUTOR=, if not null, /is/ where the configuration is established. In openSUSE, that default is null, and thus falls back to something somewhere I suppose in /usr/ establishing opensuse as its default. In Debian it is by default whatever `lsb_release -i -s 2> /dev/null || echo Debian` works out to be, usually "debian" AFAICT, unless it's been changed since last I had such file from a Debian installation. With only one bootloader per PC, lots of /etc/default/ directories have no grub file in them. > My expectation is that > EFI/opensusetw/grub.cfg is still hardcoded in your grubx64.efi. Given /boot/grub2/grub.cfg was last written 13 minutes after EFI/opensusetw/grubx64.efi, I do not believe it is in there in this or on any other of my installations: # ls -gG /boot/efi/EFI/opensusetw/grub.cfg ls: cannot access '/boot/efi/EFI/opensusetw/grub.cfg': No such file or directory # ls -gG /boot/efi/EFI/opensusetw/ total 148 -rwxr-xr-x 1 151552 Aug 21 16:08 grubx64.efi # ls -gG /boot/efi/EFI/* /boot/efi/EFI/BOOT: total 1172 -rwxr-xr-x 1 143360 Aug 23 2022 BOOTX64.EFI -r-xr-xr-x 1 1053552 Jul 26 2017 mt74x64.efi /boot/efi/EFI/opensusetw: total 148 -rwxr-xr-x 1 151552 Aug 21 16:08 grubx64.efi # lsblk -f | egrep -i 'tw|deb|esp' ├─sda1 vfat FAT32 TG1P01ESP ...9-E... 315M 1% /boot/efi ├─sda7 ext4 1.0 tg1p07stw c9b0...701a 1.1G 81% / ├─sda9 ext4 1.0 tg1p09deb12 87b9...8adc 1.5G 76% /disks/deb12 ├─sda13 ext4 1.0 tg1p13deb13 a5d4...ceb0 3.6G 49% /disks/deb13 ├─sda17 ext4 1.0 tg1p17deb11 5be1...5084 765.9M 86% /disks/deb11 # ls -gG /boot/grub2/grub.cfg -rw------- 1 28238 Aug 21 16:21 /boot/grub2/grub.cfg # >> Do we know that the update-grub command normally writes to /boot/efi/EFI/, >> and NVRAM (optional?)? > Actually I tried dpkg-reconfigure for grub and shim packages and your > message made me thinking that you may correct me and may provide proper > commands to configure *UEFI* boot menu. > From my old notes: > <https://bugs.launchpad.net/bugs/1450783> efibootmgr -c -L "opensusetw" -d /dev/sda1 -l '\EFI\opensusetw\grubx64.efi' here has created a new entry in NVRAM when old was obsolete or deleted. It doesn't create the opensusetw directory on the ESP. That is written by any process that reads GRUB_DISTRIBUTOR= to determine where to do its writing on the ESP. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata