sunhat/install/app_grub_btrfs.sh

19 lines
930 B
Bash
Raw Normal View History

2024-06-09 16:29:49 -05:00
sudo dnf install -y btrfs-progs gawk inotify-tools
2024-06-09 05:05:28 -05:00
git clone https://github.com/Antynea/grub-btrfs ~/.local/share/sunhat/packages/grub-btrfs/
2024-06-09 16:29:49 -05:00
cp ~/.local/share/sunhat/configs/grub-btrfs/config ~/.local/share/sunhat/packages/grub-btrfs/config
2024-06-09 05:05:28 -05:00
cd ~/.local/share/sunhat/packages/grub-btrfs
2024-06-09 04:16:43 -05:00
sudo make install
cd ~/.local/share/sunhat
2024-06-09 04:16:43 -05:00
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