diff options
| author | Craig Jennings <c@cjennings.net> | 2024-11-10 21:50:53 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-11-10 21:50:53 -0600 |
| commit | 2d0915699c75128151e8b3eec75f814afae5665e (patch) | |
| tree | 7a7a3c5f33a7be9ffaca025596add5146e4875f5 /archsetup | |
| parent | 9d039c3fd9fc628e883affc23c9533769e4c8b2c (diff) | |
adding timeshift autosnap functionality
Diffstat (limited to 'archsetup')
| -rwxr-xr-x | archsetup | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |
