diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-19 23:20:24 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-19 23:20:24 -0600 |
| commit | 5ed8c9567ca2075d29ac00078fa6dd5ad7580629 (patch) | |
| tree | 89349f7c4ae719c928e2fe553d625a35aa8ae92d /scripts/test-configs | |
| parent | 2cf3e88b630b2a6287926c02ca8024ffc5065deb (diff) | |
| download | archangel-5ed8c9567ca2075d29ac00078fa6dd5ad7580629.tar.gz archangel-5ed8c9567ca2075d29ac00078fa6dd5ad7580629.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 'scripts/test-configs')
0 files changed, 0 insertions, 0 deletions
