From 2d0915699c75128151e8b3eec75f814afae5665e Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 10 Nov 2024 21:50:53 -0600 Subject: adding timeshift autosnap functionality --- archsetup | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'archsetup') 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 -- cgit v1.2.3