Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LLvm and grub problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 359

PostPosted: Thu May 30, 2024 11:09 am    Post subject: LLvm and grub problem Reply with quote

Hello, fresh install, llvm and grub problem.

Code:
grub-install --target=x86_64-efi --efi-directory=/boot/efi/EFI/Boot
insmod: ERROR: could not load module part_gpt: No such file or directory
insmod: ERROR: could not load module ext2: No such file or directory
/etc/default/grub: line 63: search: command not found
/etc/default/grub: line 67: loadfont: command not found
/etc/default/grub: line 72: terminal_output: command not found
/etc/default/grub: line 84: menuentry: command not found
insmod: ERROR: could not load module efi_gop: No such file or directory
insmod: ERROR: could not load module efi_uga: No such file or directory
insmod: ERROR: could not load module ieee1275_fb: No such file or directory
insmod: ERROR: could not load module vbe: No such file or directory
insmod: ERROR: could not load module vga: No such file or directory
insmod: ERROR: could not load module video_bochs: No such file or directory
insmod: ERROR: could not load module video_cirrus: No such file or directory
insmod: ERROR: could not load module gzio: No such file or directory
insmod: ERROR: could not load module part_gpt: No such file or directory
insmod: ERROR: could not load module ext2: No such file or directory
/etc/default/grub: line 92: search: command not found
/etc/default/grub: line 94: linux: command not found
/etc/default/grub: line 96: initrd: command not found
/etc/default/grub: line 97: syntax error near unexpected token `}'
/etc/default/grub: line 97: `}'
Installing for x86_64-efi platform.
Installation finished. No error reported.


I have been using Artix linux.
I can't load from Grub within Artix as first boot device.
Blank screen. Nothing
I have been using gentoo-kernel-bin.
If I try to install Gentoo as first device, this is what I get.
Grub is throwing command prompt when I try install Gentoo as first device.
Thank you
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 382

PostPosted: Thu May 30, 2024 12:19 pm    Post subject: Reply with quote

What is the idea behind this command
Code:
grub-install --target=x86_64-efi --efi-directory=/boot/efi/EFI/Boot
?
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 359

PostPosted: Thu May 30, 2024 1:13 pm    Post subject: Reply with quote

It's location of my bootx64.efi

Works fine with Artix.
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 481
Location: San Diego, California USA

PostPosted: Thu May 30, 2024 5:29 pm    Post subject: Reply with quote

The --efi-directory option wants the root of your EFI directory, not the boot directory inside of EFI. I think in your case it should be --efi-directory=/boot/efi
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2042

PostPosted: Fri May 31, 2024 8:21 am    Post subject: Re: LLvm and grub problem Reply with quote

RIA77 wrote:
...
Code:
...
/etc/default/grub: line 63: search: command not found
/etc/default/grub: line 67: loadfont: command not found
/etc/default/grub: line 72: terminal_output: command not found
/etc/default/grub: line 84: menuentry: command not found

...

That looks to me like your /etc/default/grub contains a grub.cfg (commands like menuentry) rather than a grub defaults file, which should be ENV variable settings such as
Code:
GRUB_CMDLINE_LINUX_DEFAULT="foo"

I wonder if you did something like
Code:
grub-mkconfig > /etc/defaults/grub

_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum