On 16/05/2019 11.38, Stephen Berman wrote:
On Wed, 15 May 2019 17:57:11 -0400 Felix Miata <mrmazda@earthlink.net> wrote:
Stephen Berman composed on 2019-05-15 21:29 (UTC+0200):
The output of efibootmgr when CSM is enabled in the BIOS is different from the output when CSM is disabled (i.e. UEFI only). Originally, and when I installed TW, CSM was enabled, but in preparation for reinstallation using pure EFI I disabled it, and this is what efibootmgr now outputs:
BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0000 Boot0000* opensuse
Unless you change Leap's GRUB_DISTRIBUTOR= first, you'll still have only one opensuse entry after reinstalling TW in UEFI mode.
I changed Leap's GRUB_DISTRIBUTOR to 'osleap', ran grub2-mkconfig as the comment in /etc/default/grub recommends, then rebooted, and the boot screen showed 'osleap' instead of 'openSUSE Leap 15.0' and also 'openSUSE Tumbleweed'. I booted into TW...
Ok.
[...]
Having the ESP partition mounted to /boot/efi/ in fstab I find it hard to understand that there would be any need to reinstall to ensure TW is only used in UEFI mode. If it was here, first thing I would try is changing TW's GRUB_DISTRIBUTOR= to something unique, then running yast bootloader, changing the timeout, exiting, and rebooting, all assuming in your TW you see the following:
# rpm -qa | egrep -i 'grub|prober' grub2-2.02-43.1.x86_64 grub2-i386-pc-2.02-43.1.noarch grub2-x86_64-efi-2.02-43.1.noarch os-prober-1.76-5.1.x86_64 ruby2.6-rubygem-cfa_grub2-1.0.1-1.3.x86_64
I have this output, so I changed GRUB_DISTRIBUTOR to 'ostw', went to the YaST bootloader module, changed the bootloader from GRUB2 to GRUB2 for EFI, but on saving got an error that no EFI partition was found. So I added /boot/efi to TW's fstab, went back to the bootloader module, and this time saved without error. However, doing that rewrote /etc/default/grub and unset GRUB_DISTRIBUTOR again. Nevertheless, /boot/grub2/grub.cfg showed both TW and Leap (in that order). Then I rebooted into Leap, where GRUB_DISTRIBUTOR was still set to 'osleap', ran the bootloader module, changed GRUB2 to GRUB2 for EFI, saved, and again this unset GRUB_DISTRIBUTOR, but again, on rebooting, both Leap and TW were listed (now in that order).
Maybe the setting was deleted because you changed to grub2 for efi and that is considered a major change, but perhaps it is a bug. I would try to set distributor again, and this time in yast only change the "timeout in seconds", which is a known trick to force yast to write again its files.
I was assuming that, when booting in UEFI, GRUB2 for EFI should be used instead of GRUB2, but perhaps that's not necessary. What do you use?
In this efi machine, I have grub2 for efi active. Booting in efi mode when previously you booted in bios mode does not change things automatically.
On Wed, 15 May 2019 18:36:58 -0400 Felix Miata <mrmazda@earthlink.net> wrote:
Carlos E. R. composed on 2019-05-15 21:56 (UTC+0200):
The same EFI partition can be mounted in as many operating systems you install. It should have different directories inside for each.
It /should/, but don't count on it, unless you are exercising oversight of GRUB_DISTRIBUTOR= on each (making each unique).
As described above, this didn't work for me, and no separate directories were created (where should they be, under /boot/efi ?); did I do something wrong? Do the directories need to be created manually?
No, yast creates them: Legolas:~ # tree -d /boot/efi/ /boot/efi/ ├── BOOT └── EFI ├── Boot ├── Microsoft │ ├── Boot │ │ ├── Fonts │ │ ├── Resources │ │ │ ├── en-US │ │ │ └── es-ES │ │ ├── bg-BG │ │ ├── cs-CZ │ │ ├── da-DK │ │ ├── de-DE │ │ ├── el-GR │ │ ├── en-GB │ │ ├── en-US │ │ ├── es-ES │ │ ├── es-MX │ │ ├── et-EE │ │ ├── fi-FI │ │ ├── fr-CA │ │ ├── fr-FR │ │ ├── hr-HR │ │ ├── hu-HU │ │ ├── it-IT │ │ ├── ja-JP │ │ ├── ko-KR │ │ ├── lt-LT │ │ ├── lv-LV │ │ ├── nb-NO │ │ ├── nl-NL │ │ ├── pl-PL │ │ ├── pt-BR │ │ ├── pt-PT │ │ ├── qps-ploc │ │ ├── ro-RO │ │ ├── ru-RU │ │ ├── sk-SK │ │ ├── sl-SI │ │ ├── sr-Latn-CS │ │ ├── sr-Latn-RS │ │ ├── sv-SE │ │ ├── tr-TR │ │ ├── uk-UA │ │ ├── zh-CN │ │ ├── zh-HK │ │ └── zh-TW │ └── Recovery ├── opensuse ├── opensuse_aux └── opensuse_main 51 directories Legolas:~ # Legolas:~ # tree --si -D /boot/efi/EFI/opensuse* /boot/efi/EFI/opensuse ├── [1.2M Aug 4 2018] MokManager.efi ├── [ 58 Aug 4 2018] boot.csv ├── [ 155 Aug 4 2018] grub.cfg ├── [1.1M Aug 4 2018] grub.efi ├── [124k Aug 4 2018] grubx64.efi └── [1.2M Aug 4 2018] shim.efi /boot/efi/EFI/opensuse_aux ├── [1.2M Aug 4 2018] MokManager.efi ├── [ 66 Aug 4 2018] boot.csv ├── [ 155 Aug 4 2018] grub.cfg ├── [1.1M Aug 4 2018] grub.efi ├── [124k Aug 4 2018] grubx64.efi └── [1.2M Aug 4 2018] shim.efi /boot/efi/EFI/opensuse_main ├── [1.2M May 9 14:12] MokManager.efi ├── [ 68 May 9 14:12] boot.csv ├── [ 155 May 9 14:12] grub.cfg ├── [1.1M May 9 14:12] grub.efi ├── [124k May 9 14:12] grubx64.efi └── [1.2M May 9 14:12] shim.efi 0 directories, 18 files Legolas:~ # The "opensuse" directory is now an orphan, doesn't belong to any OS. Ie, yast created the new directory but did not delete the old - it had no way of knowing which one was the old, anyway, distributor was not changed inside yast.
Also, although "Use graphical console" is checked in the Kernel Parameters tab of the bootloader module (and GRUB_TERMINAL="gfxterm" is in /etc/default/grub in both Leap and TW), the boot screen is in textmode. Other than that, I haven't noticed any problems.
I don't know about that :-? -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))