summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-11-10 21:50:53 -0600
committerCraig Jennings <c@cjennings.net>2024-11-10 21:50:53 -0600
commit2d0915699c75128151e8b3eec75f814afae5665e (patch)
tree7a7a3c5f33a7be9ffaca025596add5146e4875f5
parent9d039c3fd9fc628e883affc23c9533769e4c8b2c (diff)
adding timeshift autosnap functionality
-rwxr-xr-xarchsetup17
1 files changed, 17 insertions, 0 deletions
diff --git a/archsetup b/archsetup
index f6577b3..2068b2c 100755
--- a/archsetup
+++ b/archsetup
@@ -448,6 +448,22 @@ essential_services() {
display "subtitle" "Package Repository Cache Maintenance"
systemctl enable --now paccache.timer >> "$logfile" 2>&1 || error "error" "$action" "$?"
+
+ # Timeshift-Autosnap
+ display "subtitle" "Snapshot Service"
+ aur_install timeshift-autosnap
+ pacman_install grub-btrfs
+ action "enabling snapshot boot menu updates" && display "task" "$action"
+ systemctl enable grub-btrfsd >> "$logfile" 2>&1 || error "error" "$action" "$?"
+ sed -i \
+ 's|ExecStart=/usr/bin/grub-btrfsd --syslog /.snapshots|ExecStart=/usr/bin/grub-btrfsd --syslog --timeshift-auto|' \
+ /etc/systemd/system/grub-btrfsd.service
+
+ action "starting snapshot boot menu updates" && display "task" "$action"
+ systemctl start grub-btrfsd >> "$logfile" 2>&1 || error "error" "$action" "$?"
+
+ action "regenerating boot menu" && display "task" "$action"
+ grub-mkconfig -o /boot/grub/grub.cfg >> "$logfile" 2>&1 || error "error" "$action" "$?"
}
### Xorg Display Manager
@@ -512,6 +528,7 @@ desktop_environment() {
pacman_install testdisk
pacman_install udisks2
aur_install downgrade
+ aur_install duf
aur_install inxi
# File Associations