Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stuck in grub
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
meelo
n00b
n00b


Joined: 13 Mar 2024
Posts: 16

PostPosted: Mon Mar 18, 2024 4:27 pm    Post subject: Stuck in grub Reply with quote

Hello when booting, i get this menu without any booting option.


GNU GRUB version 2.12
Code:
*UEFI Firmware Settings


Even when i select this option my computer have a black screen and reboot

Btw i only got a usb stick with the gentoo livecd and some sda1,2 and 3 parametered. Don't have internet for the moment.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Mon Mar 18, 2024 4:53 pm    Post subject: Reply with quote

Do you have this problem with a new installation or has your system worked before and you have now this problem after a word-update ?

If the latter is the case, then please read the last post by:
https://forums.gentoo.org/viewtopic-t-1167837-highlight-.html
(and re-install grub)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
meelo
n00b
n00b


Joined: 13 Mar 2024
Posts: 16

PostPosted: Mon Mar 18, 2024 5:08 pm    Post subject: Reply with quote

My system have worked before, so might surely be the world update thing. I will try this the soonest
Back to top
View user's profile Send private message
Naix
n00b
n00b


Joined: 28 Feb 2024
Posts: 3

PostPosted: Wed Mar 20, 2024 8:39 am    Post subject: Seems to be a problem with 6.6.21 thinking we have LILO Reply with quote

I was going to deploy a new gentoo VM today and upon booting up I was greeted with the same thing.

Now I'm no gentoo wizard but I decided to investigate this by rolling back a snapshot of another Gentoo VM and low and behold it seemed to be something with the 6.6.21 Kernel

Apparently, when you run make install, it thinks you have LILO bootloader and doesn't move the kernel into the /boot directory correctly. as evidently from this output:

Code:

[root@livecd /usr/src/linux ] # mount /dev/nvme0n1p1 /boot
[root@livecd /usr/src/linux ] # make install
  INSTALL /boot
Cannot find LILO.
[root@livecd /usr/src/linux ] # genkernel --install --kernel-config=/usr/src/linux/.config initramfs
* Gentoo Linux Genkernel; Version 4.3.10
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --install --kernel-config=/usr/src/linux/.config initramfs

* Working with Linux kernel 6.6.21-gentoo-X22-SIEM-Server-hardened for x86_64
* Using kernel config file '/usr/src/linux-6.6.21-gentoo/.config' ...

* Current kernel's LOCALVERSION is set to '-X22-SIEM-Server-hardened'; Will ignore set --kernel-localversion value '-x86_64' because kernel was not built ...

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
*         >> Appending eudev cpio data ...
*         >> Appending auxiliary cpio data ...
*         >> Appending busybox cpio data ...
*         >> Appending modprobed cpio data ...
*         >> Appending modules cpio data ...
*         >> Deduping cpio ...
*         >> Pre-generating initramfs' /etc/ld.so.cache ...
*         >> Compressing cpio data (.xz) ...
xz: Reduced the number of threads from 4 to 1 to not exceed the memory usage limit of 1988 MiB
*
* You will find the initramfs in '/boot/initramfs-6.6.21-gentoo-X22-SIEM-Server-hardened.img'.

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:
*
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.
[root@livecd /usr/src/linux ] # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
[root@livecd /usr/src/linux ] #

Notice the error:
Code:
Cannot find LILO.

Anyone else encountering this?

Oddly enough, this doesn't occur with kernel 6.6.13 as if you run make install it produces this output:

Code:

[root@livecd ~ ] # cd /usr/src/linux
[root@livecd /usr/src/linux ] # make install
  INSTALL /boot
[root@livecd /usr/src/linux ] # genkernel --install --kernel-config=/usr/src/linux/.config initramfs
* Gentoo Linux Genkernel; Version 4.3.10
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --install --kernel-config=/usr/src/linux/.config initramfs

* Working with Linux kernel 6.6.13-gentoo-X35-gentoo-VMware-hardened-test for x86_64
* Using kernel config file '/usr/src/linux-6.6.13-gentoo/.config' ...

* Current kernel's LOCALVERSION is set to '-X35-gentoo-VMware-hardened-test'; Will ignore set --kernel-localversion value '-x86_64' because kernel was not built ...

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
*         >> Appending eudev cpio data ...
*         >> Appending auxiliary cpio data ...
*         >> Appending busybox cpio data ...
*         >> Appending modprobed cpio data ...
*         >> Appending modules cpio data ...
*         >> Deduping cpio ...
*         >> Pre-generating initramfs' /etc/ld.so.cache ...
*         >> Compressing cpio data (.xz) ...
xz: Reduced the number of threads from 6 to 3 to not exceed the memory usage limit of 3990 MiB
*
* You will find the initramfs in '/boot/initramfs-6.6.13-gentoo-X35-gentoo-VMware-hardened-test.img'.

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:
*
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.
[root@livecd /usr/src/linux ] # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.6.13-gentoo-X35-gentoo-VMware-hardened-test
Found initrd image: /boot/initramfs-6.6.13-gentoo-X35-gentoo-VMware-hardened-test.img
Found linux image: /boot/vmlinuz-6.6.13-gentoo-X35-gentoo-VMware-hardened-test.old
Found initrd image: /boot/initramfs-6.6.13-gentoo-X35-gentoo-VMware-hardened-test.img.old
Found linux image: /boot/vmlinuz-6.6.13-gentoo-X35-gentoo-VMware-hardened
Found initrd image: /boot/initramfs-6.6.13-gentoo-X35-gentoo-VMware-hardened.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done



Another odd thing is that
running genkernel --mountboot --install --kernel-config=/usr/src/linux/.config all would actually produce a working Grub entry meaning it installs the kernel properly.
_________________
Kind regards, Naix
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Wed Mar 20, 2024 12:20 pm    Post subject: Reply with quote

Naix wrote:
Apparently, when you run make install, it thinks you have LILO bootloader and doesn't move the kernel into the /boot directory correctly. as evidently from this output:

Code:

[root@livecd /usr/src/linux ] # mount /dev/nvme0n1p1 /boot
[root@livecd /usr/src/linux ] # make install
  INSTALL /boot
Cannot find LILO.

This is exactly what this news item refers to: https://www.gentoo.org/support/news-items/2024-03-12-debianutils-installkernel.html
Back to top
View user's profile Send private message
Naix
n00b
n00b


Joined: 28 Feb 2024
Posts: 3

PostPosted: Wed Mar 20, 2024 2:25 pm    Post subject: Reply with quote

Quote:
This is exactly what this news item refers to: https://www.gentoo.org/support/news-items/2024-03-12-debianutils-installkernel.html


Ah, That was my bad then, I don't read eselect news due to the use of automated scripts. I guess I should start reading them,
thanks, sir. The problem was resolved on my end.
_________________
Kind regards, Naix
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