aboutsummaryrefslogtreecommitdiff
path: root/custom/install-archzfs.conf.example
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-19 23:20:24 -0600
committerCraig Jennings <c@cjennings.net>2026-01-19 23:20:24 -0600
commit47859be7b85764e7dcca6916e37d1ec569d0ba60 (patch)
treeed2ef83c72980df2e997777090854de3bda9987b /custom/install-archzfs.conf.example
parent62442ea12514d36150d2b2694ef42d4ebed40ad7 (diff)
downloadarchangel-47859be7b85764e7dcca6916e37d1ec569d0ba60.tar.gz
archangel-47859be7b85764e7dcca6916e37d1ec569d0ba60.zip
Fix hostid mismatch bug that prevented booting installed systems
Root cause: The `hostid` command returns a value even without /etc/hostid, but `zgenhostid` generates a DIFFERENT random value. The install script was calling `hostid` for the GRUB kernel parameter, then later calling `zgenhostid` to create /etc/hostid - resulting in a mismatch. ZFS refuses to auto-import pools when spl.spl_hostid doesn't match /etc/hostid, causing "Failed to mount /sysroot" at boot. Fix: Generate hostid with zgenhostid FIRST (in configure_bootloader), then read the consistent value for the GRUB kernel parameter. The configure_zfs_services function now just copies the already-existing /etc/hostid to the installed system. Verified in VM: GRUB and /etc/hostid both show identical values after installation.
Diffstat (limited to 'custom/install-archzfs.conf.example')
0 files changed, 0 insertions, 0 deletions