From 32eef0b69a321cc24e7a51390dbc5de0ddfb5be2 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 20 Jan 2026 19:23:50 -0600 Subject: 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 --- scripts/full-test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3