From 5f34776d442cef15cc966232d88fdb2892cf276a Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 10 Nov 2024 22:06:15 -0600 Subject: fixing grub-btrfs config generation issues and action var issues --- archsetup | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'archsetup') diff --git a/archsetup b/archsetup index 2068b2c..52a36cd 100755 --- a/archsetup +++ b/archsetup @@ -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" "$?" } -- cgit v1.2.3