View previous topic :: View next topic |
Author |
Message |
meelo n00b
Joined: 13 Mar 2024 Posts: 16
|
Posted: Mon Mar 18, 2024 4:27 pm Post subject: Stuck in grub |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5104 Location: Bavaria
|
|
Back to top |
|
|
meelo n00b
Joined: 13 Mar 2024 Posts: 16
|
Posted: Mon Mar 18, 2024 5:08 pm Post subject: |
|
|
My system have worked before, so might surely be the world update thing. I will try this the soonest |
|
Back to top |
|
|
Naix n00b
Joined: 28 Feb 2024 Posts: 3
|
Posted: Wed Mar 20, 2024 8:39 am Post subject: Seems to be a problem with 6.6.21 thinking we have LILO |
|
|
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:
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 |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1918
|
Posted: Wed Mar 20, 2024 12:20 pm Post subject: |
|
|
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 |
|
|
Naix n00b
Joined: 28 Feb 2024 Posts: 3
|
Posted: Wed Mar 20, 2024 2:25 pm Post subject: |
|
|
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 |
|
|
|