aboutsummaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-19 13:16:33 -0600
committerCraig Jennings <c@cjennings.net>2026-01-19 13:16:33 -0600
commit72abc70a42a505af365fc5a892009ebeeba524ec (patch)
tree31708f3b5c9df6b34a591fdee62fbf804983c701 /custom
parentd9bf5d2ffc471fc22c1bcc6ec80a881319ea1678 (diff)
downloadarchangel-72abc70a42a505af365fc5a892009ebeeba524ec.tar.gz
archangel-72abc70a42a505af365fc5a892009ebeeba524ec.zip
Add comprehensive installation tests and ZFS script deployment
- Add scripts/full-test.sh for automated install testing (single, mirror, raidz1) - Add --full-test option to build-release workflow - Install zfssnapshot and zfsrollback to target system during install - Simplify .gitignore to exclude entire vm/ directory
Diffstat (limited to 'custom')
-rwxr-xr-xcustom/install-archzfs9
1 files changed, 7 insertions, 2 deletions
diff --git a/custom/install-archzfs b/custom/install-archzfs
index 5752b98..b6af6db 100755
--- a/custom/install-archzfs
+++ b/custom/install-archzfs
@@ -1187,9 +1187,13 @@ EOF
configure_snapshot_retention() {
step "Configuring Snapshot Retention"
- # Copy the prune script
+ # Copy ZFS management scripts
cp /usr/local/bin/zfs-snap-prune /mnt/usr/local/bin/zfs-snap-prune
+ cp /usr/local/bin/zfssnapshot /mnt/usr/local/bin/zfssnapshot
+ cp /usr/local/bin/zfsrollback /mnt/usr/local/bin/zfsrollback
chmod +x /mnt/usr/local/bin/zfs-snap-prune
+ chmod +x /mnt/usr/local/bin/zfssnapshot
+ chmod +x /mnt/usr/local/bin/zfsrollback
# Create systemd service for pruning
cat > /mnt/etc/systemd/system/zfs-snap-prune.service << 'EOF'
@@ -1219,7 +1223,8 @@ EOF
# Enable the timer
arch-chroot /mnt systemctl enable zfs-snap-prune.timer
- info "Snapshot retention configured."
+ info "ZFS management scripts installed: zfssnapshot, zfsrollback, zfs-snap-prune"
+ info "Snapshot retention configured (daily pruning enabled)."
info "Policy: Keep 20 recent, delete if older than 180 days"
info "Genesis snapshot is always preserved."
}