Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshots disappear from grub every time there is a big update #356

Open
KarkanAlzwayed opened this issue Nov 11, 2024 · 8 comments
Open

Comments

@KarkanAlzwayed
Copy link

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

@Schievel1
Copy link
Collaborator

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?

@KarkanAlzwayed
Copy link
Author

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

@Schievel1
Copy link
Collaborator

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.

@dalto8
Copy link

dalto8 commented Nov 13, 2024

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.

@Schievel1
Copy link
Collaborator

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

@dalto8
Copy link

dalto8 commented Nov 14, 2024

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?

@Schievel1
Copy link
Collaborator

Schievel1 commented Nov 14, 2024

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.

@KarkanAlzwayed
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants