Include btrfs snapshots at boot options. (Grub menu)
This is a version 4.xx of grub-btrfs
1Lbvz244WA8xbpHek9W2Y12cakM6rDe5Rt
Improves Grub by adding "btrfs snapshots" to the Grub menu.
You can start your system on a "snapshot" from the Grub menu.
Supports manual snapshots, snapper, timeshift ...
If you choose to do it,
/var/logor even
/varmust be on a separate subvolume.
This project includes its own solution.
Refer to the documentation.
grub.cfg
grub.cfgif you use the provided systemd service.
pacman -S grub-btrfs
make installor look into Makefile for instructions on where to put each file.
NOTE: Generate your Grub menu after installation for the changes to take effect.
On Arch Linux use
grub-mkconfig -o /boot/grub/grub.cfg.
You have the possibility to modify many parameters in
/etc/default/grub-btrfs/config.
If you would like Grub to automatically update when a snapshot is made or deleted: * Use
systemctl start/enable grub-btrfs.path. *
grub-btrfs.pathautomatically (re)generates
grub.cfgwhen a modification appears in
/.snapshotsfolder (by default). * If your snapshots aren't mounted in
/.snapshots, you must modify the watch folder using
systemctl edit grub-btrfs.path.
/run/timeshift/backup/timeshift-btrfs/snapshotsfolder.
Use `systemctl edit grub-btrfs.path`. Then wrote: ``` [Path] PathModified=/run/timeshift/backup/timeshift-btrfs/snapshots ``` and finally save. * You can view your change to `systemctl cat grub-btrfs.path`. * To revert change use `systemctl revert grub-btrfs.path`.
by default,
grub-mkconfigcommand is used.
grub2-mkconfigon some systems (Fedora ...).
GRUB_BTRFS_MKCONFIGvariable in
/etc/default/grub-btrfs/configfile to reflect this.