# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
Installing for x86_64-efi platform.
grub-install: error: /boot doesn't look like an EFI partition.
On a fresh base instalation, when trying to install grub I get this error. When I run:
# efibootmgr
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0005,0002,0006
Boot0002* UEFI OS
Boot0005* Hard Drive
Boot0006* UEFI: SanDisk Cruzer Glide
it shows my computer is running Artix booted from my usb with UEFI. When I exit chroot and run:
# lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0 squashfs 4.0 0 100% /run/artix/sfs/livefs
loop1 squashfs 4.0 0 100% /run/artix/sfs/rootfs
sda
└─sda1 ext4 1.0 a9d1b3c0-c1ef-4f34-8f73-b8a59184145a
sdb
├─sdb1 vfat FAT32 BOOT F82D-20C4 30.3G 6% /mnt/boot
├─sdb2 ext4 1.0 ROOT 00be7f0c-4a9a-412b-9229-0da57514d4a6 30.3G 6% /mnt
└─sdb3 ext4 1.0 HOME 53d35a0d-8175-4b69-ad83-9684eea9f2ac 856.9G 0% /mnt/home
sdc
└─sdc1 exfat 1.0 3733-3130 59.4G 0% /run/media/artix/3733-3130
sdd
sde
sdf
sdg iso9660 ARTIX_202107 2021-07-25-18-21-45-00
├─sdg1 iso9660 ARTIX_202107 2021-07-25-18-21-45-00 0 100% /run/artix/bootmnt
└─sdg2 vfat FAT12 ARTIX_EFI B325-5210
# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.37.1).
Changes will remain in memory only, until you decide to write them.
Command (m for help): p
Disk /dev/sdb: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: SPCC Solid State
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7DA5284A-0916-0D4E-BD17-2F1FA0465B9C
Device Start End Sectors Size Type
/dev/sdb1 2048 1050623 1048576 512M EFI System
/dev/sdb2 1050624 74450943 73400320 35G Linux filesystem
/dev/sdb3 74450944 2000409230 1925958287 918.4G Linux filesystem
The partitioin is formatted in Fat32, is mounted on /mnt/boot, and is a EFI System. I don't know if it is needed but here is my fstab:
# cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sdb1 LABEL=BOOT
UUID=F82D-20C4 /boot vfat defaults 0 2
# /dev/sdb2 LABEL=ROOT
UUID=00be7f0c-4a9a-412b-9229-0da57514d4a6 / ext4 rw,relatime 0 1
# /dev/sdb3 LABEL=HOME
UUID=53d35a0d-8175-4b69-ad83-9684eea9f2ac /home ext4 rw,relatime 0 2
I had to manually enter the section for the boot partition because it wasn't there, the same error occurs if that entry is present or not. The UUID is different from the other partitions, as output of lsblk -f shows above.
Using the installer with Plasma and Lxde works fine but when I try a base install with openrc or runIt I get the same error, everything goes well up to the grub install. Any help is appreciated.