grub-btrfs icon indicating copy to clipboard operation
grub-btrfs copied to clipboard

Snapshots disappear from grub every time there is a big update

Open kalzEOS opened this issue 1 year ago • 8 comments

Every time I update my system and reboot, the snapshots disappear from grub. I have found out that I would need to update grub by running these commands for them to show up.

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

I have tried reinstalling grub-btrfs but that didn't help. Something to note is that I do dualboot with windows 11.

Operating System: EndeavourOS KDE Plasma Version: 6.2.3 KDE Frameworks Version: 6.8.0 Qt Version: 6.8.0 Kernel Version: 6.11.6-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics Memory: 15.0 GiB of RAM Graphics Processor: AMD Radeon RX 6600 Manufacturer: Gigabyte Technology Co., Ltd. Product Name: A520I AC System Version: -CF

kalzEOS avatar Nov 11 '24 03:11 kalzEOS

Maybe endeavor triggers the making of the grub config differently than with grub-mkconf and this different way of doing it doesn't run the 41_snapshots script. Maybe someone running endeavor can investigate?

Schievel1 avatar Nov 11 '24 09:11 Schievel1

Do I need to take this to the Endeavour OS team to see if it is an issue on their end?

kalzEOS avatar Nov 11 '24 14:11 kalzEOS

Yes, if sudo grub-mkconfig -o /boot/grub/grub.cfg works, they must be doing something differently to crate the grub menu. (and therefore delete the snapshots menu while doing it) With a quick search I couldn't find out what it is.

Schievel1 avatar Nov 12 '24 07:11 Schievel1

EndeavourOS doesn't trigger the re-making of the grub menu at all. Since the kernel/initrd names don't change on Arch/EOS with updates, there is no reason to rebuild the menu on update.

dalto8 avatar Nov 13 '24 17:11 dalto8

Well there must be something that triggers the making of the grub.cfg out of the usual process that includes the output of 41_snapshots-script. Maybe some autosnapshot tool that is configured wrong. AFAIK there are a few for arch/ endeavors pacman

Schievel1 avatar Nov 13 '24 20:11 Schievel1

I am not sure what the OP is using but most of our grub-btrfs users are using grub-btrfsd.

@KarkanAlzwayed, can you share what you are using?

dalto8 avatar Nov 14 '24 00:11 dalto8

Grub-btrfsd is triggering grub-mkconf with exactly the same command like OP tried manually, or, if the snapshots menu entry already exists in grub.cfg, the 41_snapshots-script directly, to only trigger the generation of the snapshot submenu.

There must be something else that triggers the creation of the grub.cfg and bypasses the usual grub-mkconf.

Schievel1 avatar Nov 14 '24 06:11 Schievel1

I am not sure what the OP is using but most of our grub-btrfs users are using grub-btrfsd.

@KarkanAlzwayed, can you share what you are using?

How do I get you what I'm using? Is there a command I need to run? Or would you like me to get a package name?

kalzEOS avatar Nov 14 '24 12:11 kalzEOS