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 | 8525cd331c88b8d0f6b1be2c0207f4e68c449834 (patch) | |
| tree | 977a4e7d2daa45305677f332889a99f9c6fd5565 /custom | |
| parent | 5d2641077d79e76c45ffcb39cd15adeb652d3630 (diff) | |
| download | archangel-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 'custom')
| -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" } |
