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 --- custom/install-archzfs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'custom/install-archzfs') diff --git a/custom/install-archzfs b/custom/install-archzfs index 202732d..e93186d 100755 --- a/custom/install-archzfs +++ b/custom/install-archzfs @@ -810,6 +810,13 @@ create_zfs_pool() { fi info "ZFS pool created successfully." + + # Set cachefile property - required for initramfs ZFS hook to import pool at boot + # Without this, mkinitcpio won't include zpool.cache and boot will fail with + # "cannot import '(null)': no such pool available" + info "Setting pool cachefile for boot..." + zpool set cachefile=/etc/zfs/zpool.cache "$POOL_NAME" + zpool status "$POOL_NAME" } -- cgit v1.2.3