numerous updates

This commit is contained in:
2026-10-21 08:33:19 -06:00
parent 474a678d45
commit 0905f858a9
27 changed files with 651 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Snapshot / before the system update so a bad upgrade can be rolled back.
# system/snapper.sh creates the "root" config on btrfs machines and keeps the
# last 5 snapshots.
is_installed() {
command -v snapper &>/dev/null && [ -f /etc/snapper/configs/root ]
}
run_update() {
echo "Snapshotting / before updating..."
sudo snapper -c root create -c number -d "Before CoreDesktop update" \
&& sudo snapper -c root cleanup number
}