-
Notifications
You must be signed in to change notification settings - Fork 78
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
Grub-btrfs doesn't detect my Timeshift btrfs snapshots on running "grub-mkconfig" #344
Comments
Yep I did that exact command, still doesn't recognise any snapshots |
Maybe you have forgotten to start the daemon? Try |
I have used the 'systemctl enable grub-btrfsd' so it should start on system startup anyway, and after editing the config to support Timeshift I did 'systemctl restart grub-btrfsd'. I double checked anyway with 'systemctl status grub-btrfsd' and the grub-btrfsd is active |
Yes that's sounds good to me. Can you watch the syslog (I think with systemd the command for that should be 'journalctl -f') then open timeshift, do a snapshot in timeshift and close it again? Then post the output of the syslog here. |
Here is the exact full output as a txt file:
|
So it seems like grub-btrfsd is working correctly. It detects snapshots being created and trigger the grub submenu creation (it says "grub menu recreated" in the logs after timeshift creates the snapshot) What this does is running '/etc/grub.d/41_snapshots-btrfs' Also if you give it the command 'btrfs subvolume list -sa /' what does it say? |
Okay to address your points, running the first command just says "Detecting snapshots..." on all occasions (Both before and after Timeshift snapshot creation), not an error but not a success either, Here is the output:
The first two were before making a snapshot and the third output is after the Timeshift snapshot, all of them are the exact same. No, no snapshot boot entries showed up in the next boot after making a snapshot and running the former command. As for the second command, the "btrfs subvolume list -sa /", here is the output of that command, I had to use 'sudo' for elevated privileges:
|
Sorry I forgot to mention, the first command also needs sudo |
In that case, after running it with sudo I do get lots of text, and in the end it just ends up saying "No snapshots found". Here is the output:
|
Ok, so executing this script is what grub does as well. And it gets back this snippet you postet and integrates that into the grub.cfg file in /boot/grub. You say you're running grub-btrfs version 4.12. is there any particular reason for that? I know there have been some problems with changes in btrfs-progs in the past which led to grub-btrfs not working anymore. Could you try upgrading to 4.13? |
Yes about that, I'm having the same issue as this guy here: #341. I just used 'pacman' to install grub-btrfs, not even the AUR |
To add on, if necessary I could compile from source and get the package that way, but idk if the grub-btrfs config is just wrong and that I am using 4.13, or if the 'pacman' package is actually not up to date with the source on GitHub. |
No you're fine. I think that was just a mistake I made in the 4.13 commit. There is one issue where the user had the same problem and with migration from timeshift to snapper it got solved. Instead of migrating directly, maybe make a manual snapshot first and see if it is detected. To get rid of the snapshot just delete the /snapshots directory again. |
Okay, so I am on the latest version. What you're saying so far is that btrfs-progs detects the snapshot but the script doesn't, yes? |
Yes. The script is using btrfs-progs as well, then parses the output of btrfs-progs using awk and such. |
Another thing I must add, why is the output so crowded and 'unclean', I thought it would just say "Detecting snapshots" and directly after mention it finding any snapshots or not, but in the output I get, it looks very confusing and crowded. |
You mean this part? if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then This is the part grub integrates into its scripts. You said that you are new to Linux, you maybe want to read about stdin, stderr and stdout. It's a very powerful and old concept of Unix and the way it can chain programs together. |
Okay good to know, will read about those, as I'm finding Linux and Unix very interesting so far and I would love to get even deeper. Thanks! |
As the title suggests, Grub-btrfs is not detecting my btrfs snapshots (using Timeshift), I configured the Grub-btrfs daemon to monitor the Timeshift snapshots using "--timeshift-auto" but without any results or detecting my snapshots, even though I'm sure I have snapshots. My version of Timeshift is 24.06.3 and Grub-btrfs is version 4.12. Im using vanilla Arch linux with KDE Plasma Wayland on a VM and my host computer is a MacBook Pro 14 inch 2021, meaning everything is aarch64 and my Arch linux is the ARM flavor
This is the exact output I get from running "grub-mkconfig":
These are my grub configs:
These are my grub-btrfs configs:
These are my grub-btrfs daemon configs:
Feel free to ask me to add any needed info that I missed, I am really really new to Linux (literally started 2 weeks ago) and I try to add any relevant info that I know of.
The text was updated successfully, but these errors were encountered: