Antynea / grub-btrfs

Include btrfs snapshots at boot options. (Grub menu)
GNU General Public License v3.0
745 stars 77 forks source link

Snapshots won't show up in grub list unless I upgrade grub #306

Closed KarkanAlzwayed closed 10 months ago

KarkanAlzwayed commented 10 months ago

EDIT: I have resolved this by changing /.snapshots to --timeshift-auto in grub-btrfsd Closing

I have installed everything from scratch. Timeshift Timeshift-autosnap Grub-btrfs inotify-tools Ran timeshift and set it up correctly Created a couple of snapshots and I can't see them until I run sudo grub-mkconfig -o /boot/grub/grub.cfg every single time for it to update the list in grub. I have run

sudo systemctl start grub-btrfsd.service
sudo systemctl enable grub-btrfsd.service

Then sudo systemctl status grub-btrfsd.service It shows as enabled but not active.

[kalzi@kalzi-EOS ~]$ sudo systemctl start grub-btrfsd.service
[sudo] password for kalzi: 
[kalzi@kalzi-EOS ~]$ sudo systemctl enable grub-btrfsd.service
[kalzi@kalzi-EOS ~]$ sudo systemctl status grub-btrfsd.service
× grub-btrfsd.service - Regenerate grub-btrfs.cfg
     Loaded: loaded (/usr/lib/systemd/system/grub-btrfsd.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Tue 2023-11-21 17:02:52 EST; 20s ago
   Duration: 6ms
   Main PID: 6962 (code=exited, status=1/FAILURE)
        CPU: 6ms

Nov 21 17:02:52 kalzi-EOS grub-btrfsd[6963]: [!] No directory found at /.snapshots
Nov 21 17:02:52 kalzi-EOS grub-btrfsd[6964]: [!] Please specify a valid snapshot directory
Nov 21 17:02:52 kalzi-EOS systemd[1]: grub-btrfsd.service: Main process exited, code=exited, status=1/FAILURE
Nov 21 17:02:52 kalzi-EOS systemd[1]: grub-btrfsd.service: Failed with result 'exit-code'.

Also, running duf does not show that I have a ./snapshots folder sdfdsfsdfsd

Not sure what I am missing or didn't install.

Operating System: EndeavourOS KDE Plasma Version: 5.27.9 KDE Frameworks Version: 5.112.0 Qt Version: 5.15.11 Kernel Version: 6.6.2-arch1-1 (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics Memory: 15.5 GiB of RAM Graphics Processor: AMD Radeon RX 580 Series Manufacturer: Gigabyte Technology Co., Ltd. Product Name: A520I AC System Version: -CF