Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I'm stuck at 6.6.62-gentoo-dist (bin). Maybe a btrfs issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 33

PostPosted: Wed Feb 12, 2025 8:52 am    Post subject: I'm stuck at 6.6.62-gentoo-dist (bin). Maybe a btrfs issue Reply with quote

Hello, I use btrfs with snapper and grub-btrfs (https://github.com/Antynea/grub-btrfs) for my laptop. I needed to roll back last Dec and at some point I noticed that my kernel stays at 6.6.62-gentoo-dist. I do have 6.6.67 and 6.6.74 on my /boot but they won't show up in grub. I've done the grub-mkconfig -o /boot/grub/grub.cfg many times and it finds the kernels but at boot they won't be available. Also in the grub menu I can only find old snapshots from 2024.

Here's the output of grub-mkconfig -o:

Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg
Password:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.6.74-gentoo-dist
Found initrd image: /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.74-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.6.74-gentoo-dist.old
Found initrd image: /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.74-gentoo-dist.img.old
Found linux image: /boot/vmlinuz-6.6.67-gentoo-dist
Found initrd image: /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.67-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.6.62-gentoo-dist
Found initrd image: /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.62-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.6.58-gentoo-dist
Found initrd image: /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.58-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.6.57-gentoo-dist
Found initrd image: /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.57-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.6.57-gentoo-dist.old
Found initrd image: /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.57-gentoo-dist.img.old
Found linux image: /boot/vmlinuz-6.6.51-gentoo-dist
Found initrd image: /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.51-gentoo-dist.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Gentoo Linux on /dev/nvme0n1p2
Found Gentoo Linux on /dev/nvme0n1p2
Found Debian GNU/Linux 12 (bookworm) on /dev/nvme0n1p3
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2025-02-11 15:41:56 | .snapshots/259/snapshot                       | post   | Upgrading to sys-kernel/gentoo-kernel-bin-6.6.74 replacing version(s) 6.6.74 |
Found snapshot: 2025-02-11 09:30:21 | .snapshots/237/snapshot                       | single | new                                                                          |
Found snapshot: 2025-02-10 11:01:19 | .snapshots/236/snapshot/.snapshots/1/snapshot | single | N/A                                                                          |
Found snapshot: 2024-12-13 11:40:53 | .snapshots/236/snapshot                       | single | writable copy of #234                                                        |
Found 4 snapshot(s)
Unmount /tmp/grub-btrfs.OUuAh1h6jF .. Success
done



here's some other info:
Code:
lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 465.8G  0 disk
├─nvme0n1p1 259:1    0     2G  0 part /efi
├─nvme0n1p2 259:2    0 426.7G  0 part /.snapshots
│                                     /
├─nvme0n1p3 259:3    0  29.3G  0 part
└─nvme0n1p4 259:4    0   7.8G  0 part [SWAP]



Code:
cat /etc/fstab
# <fs>         <mountpoint>   <type>      <opts>      <dump> <pass>

#LABEL=boot      /boot      ext4      defaults   1 2
/dev/nvme0n1p1 /efi vfat defaults,noatime 1 2
#LABEL=root
/dev/nvme0n1p2 / btrfs defaults,noatime 0 1
/dev/nvme0n1p2 /.snapshots btrfs subvol=.snapshots 0 0
#LABEL=swap      none      swap      sw      0 0
/dev/nvme0n1p4 none swap sw 0 0



Code:
sudo btrfs subvolume list .
ID 256 gen 59370 top level 5 path Downloads
ID 832 gen 59990 top level 5 path .snapshots
ID 1070 gen 59996 top level 832 path .snapshots/236/snapshot
ID 1071 gen 58154 top level 1070 path .snapshots
ID 1072 gen 58154 top level 1071 path .snapshots/1/snapshot
ID 1073 gen 59133 top level 832 path .snapshots/237/snapshot
ID 1095 gen 59888 top level 832 path .snapshots/259/snapshot


Code:
eselect kernel list
Available kernel symlink targets:
  [1]   linux-6.6.74-gentoo
  [2]   linux-6.6.74-gentoo-dist *

uname -r
6.6.62-gentoo-dist


this is a bit odd Boot0000 is EFI/gentoo/grub64.efi but my EFI at root is empty and the /efi partition has /efi/EFI/gentoo/grub.cfg and grubx64.efi)

Code:
sudo efibootmgr
Password:
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0003,0001,2001,2002,2003
Boot0000* gentoo   HD(1,MBR,0x4bedd25a,0x800,0x1388000)/\EFI\gentoo\grubx64.efi
Boot0001* HDD0: KINGSTON SNV2S500G   PciRoot(0x0)/Pci(0x1d,0x4)/Pci(0x0,0x0)/NVMe(0x1,00-26-B7-78-5A-23-9F-A5)/HD(1,MBR,0x4bedd25a,0x800,0x400000)RC
Boot0003* debian   HD(1,MBR,0x4bedd25a,0x800,0x400000)/\EFI\debian\shimx64.efi
Boot2001* EFI USB Device   RC
Boot2002* EFI DVD/CDROM   RC
Boot2003  EFI Network   RC


I'll try to symlink the /efi/EFI/gentoo/grubx64.efi to my EFI if you think its ok.. (I'll wait for your input)

My quess is that I'm somehow in my snapshots as my root and it just boots to an old grub config but can't figure out how to change this behavior.
Back to top
View user's profile Send private message
loravis
n00b
n00b


Joined: 29 Dec 2024
Posts: 18
Location: Bremen, Germany

PostPosted: Wed Feb 12, 2025 9:52 am    Post subject: Reply with quote

Quote:
but they won't show up in grub

I assume that they're not showing up in the "Advanced Options" menu in the grub boot menu, is that correct?
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 33

PostPosted: Wed Feb 12, 2025 1:32 pm    Post subject: Reply with quote

loravis wrote:
Quote:
but they won't show up in grub

I assume that they're not showing up in the "Advanced Options" menu in the grub boot menu, is that correct?


They don't show up. Only the 6.6.62 and older ones are there
Back to top
View user's profile Send private message
loravis
n00b
n00b


Joined: 29 Dec 2024
Posts: 18
Location: Bremen, Germany

PostPosted: Wed Feb 12, 2025 1:47 pm    Post subject: Reply with quote

Code:
sudo cat /boot/grub/grub.cfg | grep Linux


Run this command and show me the output, please.
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 33

PostPosted: Wed Feb 12, 2025 3:04 pm    Post subject: Reply with quote

loravis wrote:
Code:
sudo cat /boot/grub/grub.cfg | grep Linux


Run this command and show me the output, please.


a bit long but here's the output
Code:
sudo cat /boot/grub/grub.cfg | grep Linux
Password:
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-209593d9-6236-4766-9d2d-0a864c582ad3' {
   echo   'Loading Linux 6.6.74-gentoo-dist ...'
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.74-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.74-gentoo-dist-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.74-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.74-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.74-gentoo-dist-recovery-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.74-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.74-gentoo-dist.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.74-gentoo-dist.old-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.74-gentoo-dist.old ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.74-gentoo-dist.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.74-gentoo-dist.old-recovery-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.74-gentoo-dist.old ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.67-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.67-gentoo-dist-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.67-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.67-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.67-gentoo-dist-recovery-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.67-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.62-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.62-gentoo-dist-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.62-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.62-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.62-gentoo-dist-recovery-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.62-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.58-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.58-gentoo-dist-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.58-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.58-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.58-gentoo-dist-recovery-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.58-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.57-gentoo-dist-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.57-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.57-gentoo-dist-recovery-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.57-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.57-gentoo-dist.old-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.57-gentoo-dist.old ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.57-gentoo-dist.old-recovery-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.57-gentoo-dist.old ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.51-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.51-gentoo-dist-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.51-gentoo-dist ...'
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.51-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.51-gentoo-dist-recovery-209593d9-6236-4766-9d2d-0a864c582ad3' {
      echo   'Loading Linux 6.6.51-gentoo-dist ...'
menuentry 'Gentoo Linux (on /dev/nvme0n1p2)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-209593d9-6236-4766-9d2d-0a864c582ad3' {
submenu 'Advanced options for Gentoo Linux (on /dev/nvme0n1p2)' $menuentry_id_option 'osprober-gnulinux-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.62-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.62-gentoo-dist (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.62-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.62-gentoo-dist (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.62-gentoo-dist-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.58-gentoo-dist (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.58-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.58-gentoo-dist (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.58-gentoo-dist-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.57-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.57-gentoo-dist-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist.old (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.57-gentoo-dist.old--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist.old (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.57-gentoo-dist.old-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.51-gentoo-dist (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.51-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.51-gentoo-dist (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.51-gentoo-dist-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
menuentry 'Gentoo Linux (on /dev/nvme0n1p2)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-209593d9-6236-4766-9d2d-0a864c582ad3' {
submenu 'Advanced options for Gentoo Linux (on /dev/nvme0n1p2)' $menuentry_id_option 'osprober-gnulinux-advanced-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.62-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.62-gentoo-dist (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.62-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.62-gentoo-dist (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.62-gentoo-dist-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.58-gentoo-dist (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.58-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.58-gentoo-dist (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.58-gentoo-dist-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.57-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.57-gentoo-dist-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist.old (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.57-gentoo-dist.old--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.57-gentoo-dist.old (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.57-gentoo-dist.old-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.51-gentoo-dist (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.51-gentoo-dist--209593d9-6236-4766-9d2d-0a864c582ad3' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.51-gentoo-dist (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.6.51-gentoo-dist-root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro single rootflags=subvol=.snapshots-209593d9-6236-4766-9d2d-0a864c582ad3' {
menuentry 'Debian GNU/Linux 12 (bookworm) (on /dev/nvme0n1p3)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-c0a7cdf9-75bc-412b-86d0-4eb43538042a' {
submenu 'Advanced options for Debian GNU/Linux 12 (bookworm) (on /dev/nvme0n1p3)' $menuentry_id_option 'osprober-gnulinux-advanced-c0a7cdf9-75bc-412b-86d0-4eb43538042a' {
   menuentry 'Debian GNU/Linux (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.0-31-amd64--c0a7cdf9-75bc-412b-86d0-4eb43538042a' {
   menuentry 'Debian GNU/Linux, with Linux 6.1.0-31-amd64 (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.0-31-amd64--c0a7cdf9-75bc-412b-86d0-4eb43538042a' {
   menuentry 'Debian GNU/Linux, with Linux 6.1.0-31-amd64 (recovery mode) (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.0-31-amd64-root=UUID=c0a7cdf9-75bc-412b-86d0-4eb43538042a ro single-c0a7cdf9-75bc-412b-86d0-4eb43538042a' {
   menuentry 'Debian GNU/Linux, with Linux 6.1.0-28-amd64 (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.0-28-amd64--c0a7cdf9-75bc-412b-86d0-4eb43538042a' {
   menuentry 'Debian GNU/Linux, with Linux 6.1.0-28-amd64 (recovery mode) (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.0-28-amd64-root=UUID=c0a7cdf9-75bc-412b-86d0-4eb43538042a ro single-c0a7cdf9-75bc-412b-86d0-4eb43538042a' {
pete@gentoo ~ $
Back to top
View user's profile Send private message
loravis
n00b
n00b


Joined: 29 Dec 2024
Posts: 18
Location: Bremen, Germany

PostPosted: Wed Feb 12, 2025 7:04 pm    Post subject: Reply with quote

Mmm yea, that's rather strange. According to that output, grub should be configured perfectly... What's likely happening here is that grub is pulling an incorrect or outdated configuration file when booting up, for whatever.

How exactly do those snapshots of yours work? How'd you set them up?
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 33

PostPosted: Wed Feb 12, 2025 8:14 pm    Post subject: Reply with quote

Quote:
How exactly do those snapshots of yours work? How'd you set them up?


I always use Gentoo Wiki. For this Btrfs page + snapper page and then the grub-btrfs (link in my first post) to add the menu entries to grub. My setup automatically takes a pre and post snapshot of every emerged package when I run sudo emerge -uDN @world. I usually clean these snapshots except the last one after a successful reboot.

I think my issue started last Dec when I needed to "go back" after my system didn't boot. I think I'm on the snapshot and it just has the grub.cfg somewhere which won't get updated with sudo grub-mkconfig -o /boot/grub/grub.cfg

If this issue is not solved easily I'll try to change btrfs to ext4 for my SSD.
Back to top
View user's profile Send private message
loravis
n00b
n00b


Joined: 29 Dec 2024
Posts: 18
Location: Bremen, Germany

PostPosted: Wed Feb 12, 2025 8:41 pm    Post subject: Reply with quote

I don't know if this'll work, because I do not use those tools, however this may be worth attempting.

Recreate your grub configuration via grub-mkconfig. Once you've done that, manually create a new snapshot using snapper create (please make sure you read the manpage or snapper --help if you've never done this before), then restart your machine and boot into that new snapshot.

In theory, assuming that everything works correctly, this should grant the booted system access to the up to date grub configuration and make the newer kernels available.
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 33

PostPosted: Wed Feb 12, 2025 9:03 pm    Post subject: Reply with quote

loravis wrote:
I don't know if this'll work, because I do not use those tools, however this may be worth attempting.

Recreate your grub configuration via grub-mkconfig. Once you've done that, manually create a new snapshot using snapper create (please make sure you read the manpage or snapper --help if you've never done this before), then restart your machine and boot into that new snapshot.

In theory, assuming that everything works correctly, this should grant the booted system access to the up to date grub configuration and make the newer kernels available.



That's what I've tried few times already. I always see the old grub menu with the same kernels and snapshots. They don't change no matter what Ive tried. I even tried to use the Debian's grub (it's on Sam SSD) but it also finds these same entries even if I update it's grub with os-prober enabled. No new kernel/ snapshot shown.
Back to top
View user's profile Send private message
loravis
n00b
n00b


Joined: 29 Dec 2024
Posts: 18
Location: Bremen, Germany

PostPosted: Wed Feb 12, 2025 9:22 pm    Post subject: Reply with quote

Just to clarify, when you boot your system, do you select a snapshot from the snapshots menu or do you just boot into the root snapshot (which is the snapshot that grub-btrfs should boot into by default if nothing is selected)?
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 33

PostPosted: Thu Feb 13, 2025 6:08 am    Post subject: Reply with quote

loravis wrote:
Just to clarify, when you boot your system, do you select a snapshot from the snapshots menu or do you just boot into the root snapshot (which is the snapshot that grub-btrfs should boot into by default if nothing is selected)?


I boot normally to Gentoo. The issue is that there in no new kernels available. 6.6.62 is the newest in grub menu. All the snapshots shown in grub menu are from last year (EDIT: and they are not bootable any more). After boot I can see the new snapshots and kernels on my filesystem. The grub that does booting is somehow not updating even after grub-mkconfig -o/boot/grub/grub.cfg (where it finds all newer kernels and snapshots).

EDIT:
I uploaded the grub menu, Gentoo grub options menu and Gentoo snapshots menu here:
https://imgdrop.io/image/grub-menu.NIWJv
https://imgdrop.io/image/advanced-options-gentoo.NIXHD
https://imgdrop.io/image/snapshots.NI6Dh

EDIT2:
I tried to run dracut again and updated grub:
Code:
sudo dracut --force --hostonly --kver 6.6.74-gentoo-dist

sudo grub-mkconfig -o /boot/grub/grub.cfg


and no help. I also manually edited the grub menu entry (changed 6.6.62 to 6.6.74) and laptop not booting because kernel is not loaded. Here's the edited menu entry pic:[/code]
https://dl.imgdrop.io/file/aed8b140-8472-4813-922b-7ce35ef93c9e/2025/02/13/IMG_20250213_103953_HDR7c6da6b0afd2e14d.jpeg
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 33

PostPosted: Thu Feb 13, 2025 11:46 am    Post subject: Reply with quote

It seems I've found the issue. My grub.cfg has weird entries. Here's some:

Code:

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-209593d9-6236-4766-9d2d-0a864c582ad3' {
   load_video
   if [ "x$grub_platform" = xefi ]; then
      set gfxpayload=keep
   fi
   insmod gzio
   insmod part_msdos
   insmod btrfs
   search --no-floppy --fs-uuid --set=root 209593d9-6236-4766-9d2d-0a864c582ad3
   echo   'Loading Linux 6.6.74-gentoo-dist ...'
   linux   /.snapshots/236/snapshot/boot/vmlinuz-6.6.74-gentoo-dist root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro rootflags=subvol=.snapshots/236/snapshot
   echo   'Loading initial ramdisk ...'
   initrd   /.snapshots/236/snapshot/boot/intel-uc.img /.snapshots/236/snapshot/boot/amd-uc.img /.snapshots/236/snapshot/boot/initramfs-6.6.74-gentoo-dist.img
}


What the if grub platform = xefi means? It's something I've never seen. Anyways it then would use my snapshots/236/snapshot/boot folder. Weird!

Theres entries for 6.6.62 and older kernels also on that /etc/grub.d/10_Linux

Here's the next issue:
Code:

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Gentoo Linux (on /dev/nvme0n1p2)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-209593d9-6236-4766-9d2d-0a864c582ad3' {
   insmod part_msdos
   insmod btrfs
   search --no-floppy --fs-uuid --set=root 209593d9-6236-4766-9d2d-0a864c582ad3
   linux /boot/vmlinuz-6.6.62-gentoo-dist root=UUID=209593d9-6236-4766-9d2d-0a864c582ad3 ro rootflags=subvol=.snapshots
   initrd /boot/intel-uc.img /.snapshots/boot/amd-uc.img /.snapshots/boot/initramfs-6.6.62-gentoo-dist.img
}


entry 30_os-prober would boot from /boot but no 6.6.74 (all the earlier vesions are there) and it would use .snapshots/boot fro amd-uc (intel laptop with intergrated gpu) and initramfs is also from .snapshots. Weird!

then theres the Debian part which is fine. Next one uefi firmware (which don't work at the moment. If I choose it from grub I only have black screen with cursor _)

Code:

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
   menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
      fwsetup
   }
fi
### END /etc/grub.d/30_uefi-firmware ###


Here's the one I could edit:
Code:

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###


and this one shows the old 2023 snapshots. I need to check the grub-btrfs.cfg file next:
Code:

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/41_snapshots-btrfs ###
if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then
echo ""
else
submenu 'Gentoo snapshots' {
    configfile "${prefix}/grub-btrfs.cfg"
}
fi
### END /etc/grub.d/41_snapshots-btrfs ###


At least I have something to try now!
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2017

PostPosted: Thu Feb 13, 2025 1:31 pm    Post subject: Reply with quote

tedlasso wrote:
What the if grub platform = xefi means? It's something I've never seen.

This is a red herring. [ "x$foo" = "xvalue"] is an old hack that works around an issue in some shells (or test program) when $foo is empty or special values it could not compare correctly. See also https://stackoverflow.com/questions/174119/why-do-shell-script-comparisons-often-use-xvar-xyes
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 33

PostPosted: Thu Feb 13, 2025 5:13 pm    Post subject: Reply with quote

grknight wrote:
tedlasso wrote:
What the if grub platform = xefi means? It's something I've never seen.

This is a red herring. [ "x$foo" = "xvalue"] is an old hack that works around an issue in some shells (or test program) when $foo is empty or special values it could not compare correctly. See also https://stackoverflow.com/questions/174119/why-do-shell-script-comparisons-often-use-xvar-xyes


Ok, thanks! I think I'll rsync my SSD and switch back to ext4. BTRFS is just too weird for me.
Back to top
View user's profile Send private message
zen_desu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2024
Posts: 137

PostPosted: Thu Feb 13, 2025 5:18 pm    Post subject: Reply with quote

tedlasso wrote:
grknight wrote:
tedlasso wrote:
What the if grub platform = xefi means? It's something I've never seen.

This is a red herring. [ "x$foo" = "xvalue"] is an old hack that works around an issue in some shells (or test program) when $foo is empty or special values it could not compare correctly. See also https://stackoverflow.com/questions/174119/why-do-shell-script-comparisons-often-use-xvar-xyes


Ok, thanks! I think I'll rsync my SSD and switch back to ext4. BTRFS is just too weird for me.


I'm not sure if it would help to simply use a FAT32 partition for booting? Is this a GRUB issue or specifically a filesystem issue?
_________________
µgRD dev
Wiki writer
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 33

PostPosted: Fri Feb 14, 2025 5:26 am    Post subject: Reply with quote

zen_desu wrote:

I'm not sure if it would help to simply use a FAT32 partition for booting? Is this a GRUB issue or specifically a filesystem issue?


I think I'm not ready for btrfs. I go back to ext4. This is my second try with btrfs and both times I had issues with it. I'm sure it's my fault!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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