summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
Diffstat (limited to 'archsetup')
-rwxr-xr-xarchsetup22
1 files changed, 2 insertions, 20 deletions
diff --git a/archsetup b/archsetup
index c5acb36..afaf00c 100755
--- a/archsetup
+++ b/archsetup
@@ -1176,27 +1176,9 @@ EOF
display "task" "zfs-replicate timer created (enable after SSH key setup to TrueNAS)"
elif is_btrfs_root; then
- # Btrfs: Install timeshift-autosnap and grub-btrfs
- display "task" "btrfs detected - installing snapshot tools"
- 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_warn "$action" "$?"
-
- action="starting snapshot boot menu updates" && display "task" "$action"
- # starting and stopping service to generate the grub-btrfs config
- systemctl start grub-btrfsd >> "$logfile" 2>&1 || error_warn "$action" "$?"
- systemctl stop grub-btrfsd >> "$logfile" 2>&1 || error_warn "$action" "$?"
- # edit grub-btrfs config for timeshift auto snapshot support
- 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="regenerating boot menu" && display "task" "$action"
- grub-mkconfig -o /boot/grub/grub.cfg >> "$logfile" 2>&1 || error_warn "$action" "$?"
+ display "task" "btrfs filesystem detected"
else
- # ext4 or other filesystem - no automatic snapshots
- display "task" "ext4/other filesystem detected - skipping snapshot tools"
+ display "task" "ext4/other filesystem detected"
fi
}