aboutsummaryrefslogtreecommitdiff
path: root/scripts
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
commit32eef0b69a321cc24e7a51390dbc5de0ddfb5be2 (patch)
treedfeb1d355bd10b13639403f5e040b117baeac99d /scripts
parentd2ecb549a526e2509aaa7d4ea698f4c68e08562f (diff)
downloadarchangel-32eef0b69a321cc24e7a51390dbc5de0ddfb5be2.tar.gz
archangel-32eef0b69a321cc24e7a51390dbc5de0ddfb5be2.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')
-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