Code: Select all
Installing for x86-64-efi platform.
grub-install: error: /boot doesn't look like an EFI partition
Code: Select all
/boot:
config-5.15.26-gentoo config-6.7.0-gentoo.old initramfs-6.7.0-gentoo.img.old System.map-5.15.26-gentoo.old System.map.old vmlinuz-5.15.26-gentoo vmlinuz-6.7.0-gentoo.old
config-5.15.26-gentoo.old grub System.map System.map-6.7.0-gentoo System.old vmlinuz-5.15.26-gentoo.old vmlinuz.old
config-6.7.0-gentoo initramfs-6.7.0-gentoo.img System.map-5.15.26-gentoo System.map-6.7.0-gentoo.old vmlinuz vmlinuz-6.7.0-gentoo
/boot/grub:
grub.cfg
I don't have a /efi directory, sorry for the ignorance, how exactly should I do it? By following your article https://wiki.gentoo.org/wiki/User:Pieti ... l_via_UEFI or should I do it in another way?check if you have mounted your ESP to /efi (If not, do it)
Code: Select all
# mount /dev/sdXY /mnt/gentoo
# cd /mnt/gentoo
# mount -t proc /proc /mnt/gentoo/proc
# mount --rbind /sys /mnt/gentoo/sys
# mount --rbind /dev /mnt/gentoo/dev
# mount --bind /run /mnt/gentoo/run
# chroot /mnt/gentoo /bin/bash
# . /etc/profile
# mount /dev/sdXZ /bootCode: Select all
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0000,0003,0004,0001
Boot0000* gentoo HD(1,GPT,5a906977-4e5f-ad45-a299-28e9638b4ca0, 0x800, 0x80000)/File(\EFI\gentoo grubx64.efi)0400000049535048
Boot0001 Network Boot: IPV6
PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0, 0x4)/USB (4,0)/MAC (3c18a0c44ebd,0)/IPv6 ([::]:<->[::]:,0,0)4eac0881119f594d850ee21a522c59b21b30000049535048
Boot0003 Kingston DataTraveler 3.0 08606E6B6446E311272660A3 PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0, 0x4)/USB (5,0)4eac0881119f594d850ee21a522c59b20918000049535048
Boot0004 Network Boot: IPV4 PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0, 0x4)/USB (4,0)/MAC (3c18a0c44ebd, 0)/IPv4 (0.0.0.00.0.0.0,0,0)4eac0881119f594d850ee21a522c59b21b28000049535048
Code: Select all
bash: parted: command not found
Code: Select all
/dev/nume0n1p3 on type ext4 (ru,relatine)
/proc on /proc type proc (ru,relatine)
sysfs on /sys type sysfs (ru,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (ru,nosuid, nodev, noexec, relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (ru,nosu id, nodev, noexec, relatime)
cgroup root on /sys/fs/cgroup type tmpfs (ru,nosuid,nodev, noexec, relatine,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openre type cgroup (ru,nosuid, nodev, noexec, relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh, name=openrc)
none on /sys/fs/cgroup/unified type cgroup2 (ru,nosuid, nodev, noexec, relatime, nsdelegate)
udev on /dev type devtmpfs (ru,nosuid,relatine,size=10240k, nr_inodes=1965545,mode=755)
deupts on /dev/pts type deupts (ru,relatine,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (ru,nosuid,nodev)
mqueue on /dev/nqueue type mqueue (ru,nosuid,nodev,noexec,relatime)
none on /run type tmpfs (ru,nosuid,nodev,relatime,mode=755)
Code: Select all
Model: Kingston DataTraveles 3.0 (scsi)
Disk /dev/sda: 15.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
2 98.3kB 11.1MB 11.0MB primary fat16 esp
Model: WDC PC SN530 SDBPNPZ-512G-1006 (nvme)
Disk: /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 269MB 268MB fat32 boot,esp
2 269MB 4564MB 4295MB linux-swap(v1) swap
3 4564MB 512GB 508GB ext4
2) Your article (https://wiki.gentoo.org/wiki/User:Pieti ... l_via_UEFI) would remove the need for GRUB? It seemed interestingNow, I see in your /boot a file named initramfs-* ... delete all of them. THEN:
After you have chrooted into your system, check if you have mounted your ESP to /efi (If not, do it). Do again a " grub-install --efi-directory=/efi" and THEN a "grub-mkconfig ..."
Dont worry ... sometimes I am too ...sicr0 wrote:First of all:
I'm an idiot.
You are very Welcome !sicr0 wrote:Thank you very much pietinger.
Yes. Disable USE-flag "dracut" (I did it in my make.conf with USE="-dracut ...") and do a re-emerge of "installkernel" with "emerge -1v installkernel".sicr0 wrote:1) To accomplish that, I should follow these instructions, right?
You can try it always because it cannot damage your existent installation. You can always remove the UEFI settings with "efibootmgr -b X -B X" (X = number of entry; do an "efibootmgr" before). See more: https://wiki.gentoo.org/wiki/Efibootmgr ... boot_entrysicr0 wrote:2) Your article (https://wiki.gentoo.org/wiki/User:Pieti ... l_via_UEFI) would remove the need for GRUB? It seemed interesting
YES ! ... but there is no need to deinstall it (maybe sometime you will use a "make install" again for grub ...) ... in it "naked" version it does nothing else than copying kernel (and map and config) to /boot.sicr0 wrote:To check if I understood correctly: if I want to remove installkernel, I won't be able to run make install successfully and I would have no other option than to use efibootmgr like you do in your guide, right?
Code: Select all
grub-install /dev/xxxx