2024-06-09 05:05:28 -05:00
|
|
|
git clone https://github.com/Antynea/grub-btrfs ~/.local/share/sunhat/packages/grub-btrfs/
|
|
|
|
mv ~/.local/share/sunhat/configs/grub-btrfs/config ~/.local/share/sunhat/grub-btrfs/config
|
|
|
|
cd ~/.local/share/sunhat/packages/grub-btrfs
|
2024-06-09 04:16:43 -05:00
|
|
|
sudo make install
|
|
|
|
sudo grub2-mkconfig -o /etc/grub2-efi.cfg
|
|
|
|
sudo systemctl enable --now grub-btrfsd
|
|
|
|
echo -e "\nIn order to make GRUB-BTRFS work with Timeshift,"
|
|
|
|
echo -e "we must make a change to it's systemctl file.\n"
|
|
|
|
echo -e "\nReplace the line:"
|
|
|
|
echo -e "\n\t\"ExecStart=/usr/bin/grub-btrfsd /.snapshots --syslog\""
|
|
|
|
echo -e "with:"
|
|
|
|
echo -e "\n\t\"ExecStart=/usr/bin/grub-btrfsd --syslog --timeshift-auto\"\n"
|
|
|
|
echo -e "Copy the line above now and press enter to open the file."
|
|
|
|
read -p "Replace the line, then save & close nvim to continue."
|
|
|
|
sudo systemctl edit --full grub-btrfsd
|
|
|
|
sudo systemctl restart grub-btrfsd
|