Skip to content

Grub BTRFS

Cardiac edited this page Mar 10, 2024 · 5 revisions

1. Install Packages:

yay -S timeshift grub-btrfs timeshift-autosnap

This command installs the packages timeshift, grub-btrfs, and timeshift-autosnap using the yay AUR package manager.

2. Enable and Start Cronie Service:

sudo systemctl enable --now cronie.service

This command enables and starts the cronie service, which is a cron service for scheduling tasks.

3. Enable and Start grub-btrfsd Service:

sudo systemctl enable --now grub-btrfsd

This command enables and starts the grub-btrfsd service. This service is likely related to Btrfs snapshots and GRUB integration.

4. Modify grub-btrfsd Service Configuration:

sudo sed -i 's|ExecStart=/usr/bin/grub-btrfsd --syslog /.snapshots|ExecStart=/usr/bin/grub-btrfsd --syslog --timeshift-auto|' /usr/lib/systemd/system/grub-btrfsd.service

This command uses sed to modify the configuration of the grub-btrfsd service. It adds the --timeshift-auto option to the ExecStart line, indicating that Timeshift auto-snapshots are enabled.

Clone this wiki locally