You are not logged in.

#1 2022-11-01 14:08:00

Rec100
Member
Registered: 2022-03-12
Posts: 24

Questions regarding Grub upgrade & configuration incompatibilities

I need some advise regarding the Grub bootloader upgrade and configuration incompatibilities https://archlinux.org/news/grub-bootloa … ibilities/.
Let's say my strengths are not in bootloaders and partitions. So, I would appreciate some help.
I can't take the risk of an unbootable system and hope I am posting in the right section.

When I look at /boot after the recent updates I have done, I see the following.

[user@host /boot] 
$ ls -l
drwxr-xr-x 5 root root     4096 Feb 14  2022 EFI
-rwxr-xr-x 1 root root 37755648 Nov  1 10:14 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 13517623 Nov  1 10:14 initramfs-linux.img
-rwxr-xr-x 1 root root  5180416 Aug  9 20:43 intel-ucode.img
drwxr-xr-x 3 root root     4096 Sep 28 17:45 loader
-rwxr-xr-x 1 root root 11071456 Nov  1 10:14 vmlinuz-linux

The Grub installation page - https://wiki.archlinux.org/title/GRUB#Installation - says "After the above installation completed, the main GRUB directory is located at /boot/grub/." So, I assume I am affected by the configuration incompatibilities. Correct?

So, I am trying to do the installation (I am working on the affected machine).

I was looking for the EFI system partition (ESP):

Partitioning: GUID Partition Table
Size: 508 MB — 439 MB free (13.6% full)
Contents: FAT (32-bit version) — Mounted at /boot
Device: /dev/nvme0n1p1
Partition type: EFI System

[user@host /boot/EFI] 
$ ls -lah
drwxr-xr-x 2 root root 4.0K Feb 14  2022 BOOT
drwxr-xr-x 2 root root 4.0K Feb 14  2022 Linux
drwxr-xr-x 2 root root 4.0K Feb 14  2022 systemd
[user@host /boot/EFI/BOOT] 
$ ls -lah
-rwxr-xr-x 1 root root 116K Feb 10  2022 BOOTX64.EFI

The install guide says "Mount the EFI system partition and in the remainder of this section, substitute esp with its mount point." The partition is mounted. I assume, that's /boot, correct?

So, I am thinking about running the following command:

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

Or should the EFI directory be /boot/EFI? I am unsure what to set.

Am I missing something? For example, what about the GRUB EFI application grubx64.efi mentioned in https://wiki.archlinux.org/title/GRUB#Installation. Will it be created/downloaded by running grub-install? The BOOTX64.EFI file in /boot/EFI/BOOT, has a different name, that's why I am asking.

I know, so many questions.
Thank you for your help.

Offline

#2 2022-11-01 14:11:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Questions regarding Grub upgrade & configuration incompatibilities

It looks to me like you're using systemd-boot, not grub.

Offline

#3 2022-11-01 15:30:40

Rec100
Member
Registered: 2022-03-12
Posts: 24

Re: Questions regarding Grub upgrade & configuration incompatibilities

F**k, you are right. On this system I don't even use Grub.

$ sudo efibootmgr -v                                                                                    
BootCurrent: 0000                                                                                                                                                                                               
Timeout: 0 seconds                                                                                      
BootOrder: 0000,001A,001B,001C,001D,001E,001F,0020,0021,0022                                                                                                                                                    
Boot0000* Linux Boot Manager    HD(1,GPT,9e01f5a8-ef0a-447b-b75a-92de42a01193,0x2800,0xf2000)/File(\EFI\systemd\systemd-bootx64.efi)

... I should sleep more.

Thanks!

Offline

Board footer

Powered by FluxBB