diff options
Diffstat (limited to 'archsetup')
| -rwxr-xr-x | archsetup | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -441,7 +441,7 @@ essential_services() { action="enabling cronie to launch at boot" && display "task" "$action" systemctl enable cronie >> "$logfile" 2>&1 || error "error" "$action" "$?" aur_install at - action "enabling the batch delayed command scheduler" && display "task" "$action" + action="enabling the batch delayed command scheduler" && display "task" "$action" systemctl enable atd >> "$logfile" 2>&1 || error "error" "$action" "$?" # Package Repository Cache Maintenance @@ -453,16 +453,19 @@ essential_services() { display "subtitle" "Snapshot Service" aur_install timeshift-autosnap pacman_install grub-btrfs - action "enabling snapshot boot menu updates" && display "task" "$action" + action="enabling snapshot boot menu updates" && display "task" "$action" systemctl enable grub-btrfsd >> "$logfile" 2>&1 || error "error" "$action" "$?" + + action="starting snapshot boot menu updates" && display "task" "$action" + # starting and stopping to generate the grub-btrfs config + systemctl start grub-btrfsd >> "$logfile" 2>&1 || error "error" "$action" "$?" + systemctl stop 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" + action="regenerating boot menu" && display "task" "$action" grub-mkconfig -o /boot/grub/grub.cfg >> "$logfile" 2>&1 || error "error" "$action" "$?" } |
