False start

This commit is contained in:
2026-10-21 08:51:20 -04:00
parent f621c4c0d4
commit 5c93704d21
2 changed files with 25 additions and 0 deletions
@@ -0,0 +1,13 @@
#!/bin/bash
if [ -f /run/appdata_active_snapshot.txt ]; then
SNAPSHOT_NAME=$(cat /run/appdata_active_snapshot.txt)
# Unmount and clean up scratch directory
umount -R /mnt/appdata-scratch || true
rmdir /mnt/appdata-scratch || true
# Destroy the recursive snapshot tree across all appdata datasets
zfs destroy -r tank/appdata@"$SNAPSHOT_NAME"
rm -f /run/appdata_active_snapshot.txt
fi