Multiboot system CentOS missing menuentries from grub.cfg

Issues related to applications and software problems and general support
Post Reply
arcis
Posts: 7
Joined: 2021/08/02 04:30:09

Multiboot system CentOS missing menuentries from grub.cfg

Post by arcis » 2021/08/02 05:53:06

Hi,

I have a multiboot system with Debian, CentOS, and openSUSE (installed in same order). I can't boot into CentOS install after installing openSUSE.

Disk summary -

Code: Select all

[Mon Aug 02 11:10:23 root@arcisnet ~] 
# lsblk /dev/sdc -o name,mountpoint,label
NAME                     MOUNTPOINT     LABEL
sdc                                     
├─sdc1                   /boot/efi      
├─sdc2                                  debian_boot
│ └─osprober-linux-sdc2                 debian_boot
├─sdc3                                  
│ └─debian_root                         debian_root
├─sdc4                                  
│ └─debian_tmp                          debian_tmp
├─sdc5                                  
│ └─debian_var                          debian_var
├─sdc6                                  
│ └─debian_var_log                      debian_var_log
├─sdc7                                  
│ └─debian_var_tmp                      debian_var_tmp
├─sdc8                                  
│ └─debian_var_log_audit                debian_var_log_a
├─sdc9                                  
│ └─debian_swap                         
├─sdc10                                 
│ └─debian_home                         debian_home
├─sdc11                  /boot          centos_boot
├─sdc12                                 
│ └─centos_root          /              centos_root
├─sdc13                                 
│ └─centos_var_log       /var/log       centos_var_log
├─sdc14                                 
│ └─centos_usr           /usr           centos_usr
├─sdc15                                 
│ └─centos_usr_local     /usr/local     centos_usr_local
├─sdc16                                 
│ └─centos_var           /var           centos_var
├─sdc17                                 
│ └─centos_srv           /srv           centos_srv
├─sdc18                                 
│ └─centos_tmp           /tmp           centos_tmp
├─sdc19                                 
│ └─centos_opt           /opt           centos_opt
├─sdc20                                 
│ └─centos_var_tmp       /var/tmp       centos_var_tmp
├─sdc21                                 
│ └─centos_swap                         centos_swap
├─sdc22                                 
│ └─centos_var_log_audit /var/log/audit centos_audit_log
├─sdc23                                 
│ └─centos_home                         centos_home
├─sdc24                                 sle_boot
├─sdc25                                 
│ └─cr_root                             sle_root
├─sdc26                                 
│ └─cr_usr                              sle_usr
├─sdc27                                 
│ └─cr_usr_local                        sle_usr_local
├─sdc28                                 
│ └─cr_tmp                              sle_tmp
├─sdc29                                 
│ └─cr_var                              sle_var
├─sdc30                                 
│ └─cr_var_tmp                          sle_var_tmp
├─sdc31                                 
│ └─cr_var_log                          sle_var_log
├─sdc32                                 
│ └─cr_srv                              sle_srv
├─sdc33                                 
│ └─cr_opt                              sle_opt
├─sdc34                                 
│ └─cr_swap              [SWAP]         sle_swap
├─sdc35                                 
│ └─cr_var_log_audit                    sle_auditlog
└─sdc36                                 
  └─cr_home                             sle_home
I booted into openSUSE, chrooted into centos, reinstalled grub2-efi grub2-efi-modules shim, ran grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg but it didn't populate menuentries.

Code: Select all

[Mon Aug 02 11:13:47 root@arcisnet ~] 
# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
Generating grub configuration file ...
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 93: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 94: btrfs: command not found
/usr/libexec/os-probes/50mounted-tests: line 95: btrfs: command not found
Found unknown Linux distribution on /dev/mapper/cr_root
Adding boot menu entry for EFI firmware configuration
done
efibootmgr invocation -

Code: Select all

[Mon Aug 02 11:18:59 root@arcisnet ~] 
# efibootmgr -c -w -L centos -d /dev/sdc -p 2 -l \EFI\centos\shimx64.efi
efibootmgr: ** Warning ** : Boot0006 has same label centos
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0008,0007,0006,0003,001C,0039,002E,0025,0026,003A,003B,003D,003F,002F,003E,0040,0000,0001,0002,0004,0005
Boot0000* opensuse
Boot0001* CentOS
Boot0002* debian
Boot0003* opensuse-secureboot
Boot0004* AlmaLinux
Boot0005* CentOS Stream
Boot0006* centos
Boot0007* CentOS
Boot001C* SATA : PORT 6G 0 : ST2000DM005-2CW102 : PART 0 : Boot Drive
Boot0025* SATA : PORT 2 : ST2000DM005-2CW102 : PART 0 : Boot Drive
Boot0026* SATA : PORT 3 : WDC WD40EZAZ-22SF3B0 : PART 0 : Boot Drive
Boot002E* USB : Lexar USB Flash Drive 8.07 : PART 0 : Boot Drive
Boot002F* UEFI : USB : Lexar USB Flash Drive 8.07 : PART 0 : OS Bootloader
Boot0039* SATA : PORT 6G 1 : TOSHIBA DT01ABA100V : PART 0 : Boot Drive
Boot003A* SATA : PORT 4 : TOSHIBA MK1002TSKB : PART 0 : Boot Drive
Boot003B* SATA : PORT 5 : TOSHIBA MK1002TSKB : PART 0 : Boot Drive
Boot003D* USB : SanDisk : PART 1 : Boot Drive
Boot003E* UEFI : USB : SanDisk : PART 0 : OS Bootloader
Boot003F* UEFI : SATA : PORT 6G 1 : TOSHIBA DT01ABA100V : PART 0 : OS Bootloader
Boot0040* USB : JetFlashTS256MJF2B/2L 2.00 : PART 0 : Boot Drive
Boot0008* centos
Please help me boot into CentOS

arcis
Posts: 7
Joined: 2021/08/02 04:30:09

Re: Multiboot system CentOS missing menuentries from grub.cfg

Post by arcis » 2021/08/03 04:55:59

I reinstalled CentOS 8 and with /boot/efi on a pendrive, now I can boot via BIOS. CentOS 8 grub2-efi-x64 is different.

Post Reply