diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-19 13:16:33 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-19 13:16:33 -0600 |
| commit | ea105b2a883265c0615c2275d00de1c90ae4a4e4 (patch) | |
| tree | 2ecf0cffddefa022a578cfa3ffbbc19571b29433 /custom/install-archzfs | |
| parent | d37dd8f7acb6f172bc12e3e4c6dd8089fd75f950 (diff) | |
| download | archangel-ea105b2a883265c0615c2275d00de1c90ae4a4e4.tar.gz archangel-ea105b2a883265c0615c2275d00de1c90ae4a4e4.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/install-archzfs')
| -rwxr-xr-x | custom/install-archzfs | 9 |
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." } |
