aboutsummaryrefslogtreecommitdiff
path: root/scripts/full-test.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-20 19:23:50 -0600
committerCraig Jennings <c@cjennings.net>2026-01-20 19:23:50 -0600
commit8525cd331c88b8d0f6b1be2c0207f4e68c449834 (patch)
tree977a4e7d2daa45305677f332889a99f9c6fd5565 /scripts/full-test.sh
parent5d2641077d79e76c45ffcb39cd15adeb652d3630 (diff)
downloadarchangel-8525cd331c88b8d0f6b1be2c0207f4e68c449834.tar.gz
archangel-8525cd331c88b8d0f6b1be2c0207f4e68c449834.zip
Fix ZFS boot failure: set cachefile property after pool creation
- Add zpool set cachefile=/etc/zfs/zpool.cache after pool creation - Without this, initramfs ZFS hook can't import pool at boot - Causes "cannot import '(null)': no such pool available" error - Add cachefile property test to full-test.sh
Diffstat (limited to 'scripts/full-test.sh')
-rwxr-xr-xscripts/full-test.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/full-test.sh b/scripts/full-test.sh
index 811dfa6..9537411 100755
--- a/scripts/full-test.sh
+++ b/scripts/full-test.sh
@@ -448,6 +448,15 @@ CONF"
fi
$VERBOSE && info "Genesis snapshot exists"
+ # Check cachefile property is set (required for boot)
+ local cachefile=$(ssh_cmd "zpool get -H -o value cachefile zroot" 2>/dev/null)
+ if [[ "$cachefile" != "/etc/zfs/zpool.cache" ]]; then
+ fail "$test_name: Pool cachefile not set (was: '$cachefile', need: '/etc/zfs/zpool.cache')"
+ cleanup
+ return 1
+ fi
+ $VERBOSE && info "Pool cachefile property set correctly"
+
# Check kernel
local kernel=$(ssh_cmd "uname -r" 2>/dev/null)
if [[ "$kernel" != *"lts"* ]]; then