diff options
| author | Craig Jennings <c@cjennings.net> | 2024-11-10 22:06:15 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-11-10 22:06:15 -0600 |
| commit | 5f34776d442cef15cc966232d88fdb2892cf276a (patch) | |
| tree | 61304c2237f94469ba15ec9cfcfc603f96a83417 | |
| parent | 2d0915699c75128151e8b3eec75f814afae5665e (diff) | |
fixing grub-btrfs config generation issues and action var issues
| -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" "$?" } |
