diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-20 19:23:50 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-20 19:23:50 -0600 |
| commit | 32eef0b69a321cc24e7a51390dbc5de0ddfb5be2 (patch) | |
| tree | dfeb1d355bd10b13639403f5e040b117baeac99d /custom/install-archzfs | |
| parent | d2ecb549a526e2509aaa7d4ea698f4c68e08562f (diff) | |
| download | archangel-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 'custom/install-archzfs')
| -rwxr-xr-x | custom/install-archzfs | 7 |
1 files changed, 7 insertions, 0 deletions
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" } |
