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 /docs | |
| 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 'docs')
| -rw-r--r-- | docs/session-context.org | 84 |
1 files changed, 47 insertions, 37 deletions
diff --git a/docs/session-context.org b/docs/session-context.org index a172717..06f18c5 100644 --- a/docs/session-context.org +++ b/docs/session-context.org @@ -1,40 +1,50 @@ #+TITLE: Session Context #+DATE: 2026-01-20 -* Previous Session: Monday 2026-01-20 - -** Completed - -*** Fixed hostid mismatch bug (commit 0524467) -- Root cause: ~hostid~ command returned value X, then ~zgenhostid~ created /etc/hostid with value Y -- Fix: Call ~zgenhostid~ FIRST in configure_bootloader(), then read consistent value -- Verified: GRUB and /etc/hostid match after installation - -*** Added Avahi mDNS to installed systems (commit f62bf9b) -- Packages: avahi, nss-mdns added to pacstrap -- Service: avahi-daemon enabled -- Matches archsetup implementation -- Systems now accessible as <hostname>.local after install - -*** Added Avahi validation to test scripts (commit 7b6c409) -- sanity-test.sh: Check avahi-daemon enabled and running -- test-install.sh: Verify packages and service on installed system - -*** Fixed full-test.sh bug (commit a774bae) -- Bug: ((TESTS_PASSED++)) returns exit code 1 when starting at 0 -- Fix: Use pre-increment ((++TESTS_PASSED)) - -** Test Results -- Sanity test: 15/15 passed -- Single-disk install: PASS -- Mirror install: PASS -- RAIDZ1 install: PASS - -** ISO Distributed -- ~/Downloads/isos/ -- truenas.local:/mnt/vault/isos/ -- /dev/sda (ARCHZFS USB boot drive) -- /dev/sdb1 (Ventoy) - -** Notes -- ratio needs reinstall with fixed ISO (or manual hostid fix) +* Current Session: Tuesday 2026-01-20 @ ~11:00 CST + +** Status: REBUILDING ISO + +Build in progress with the following fixes: +- Added /etc/hosts with archzfs hostname entries +- Added /etc/nsswitch.conf with mdns_minimal for mDNS resolution +- Added inetutils package (provides hostname command) +- Updated sanity test to use `cat /etc/hostname` instead of `hostname` + +** Changes Made This Session (ALL UNCOMMITTED) + +*** build.sh +- Added safe_cleanup_work_dir() function and trap (from interrupted session) +- Fixed shadow file handling (sed instead of replace) +- Added /etc/hosts file creation +- Added nsswitch.conf configuration for nss-mdns +- Added inetutils to package list + +*** scripts/sanity-test.sh +- Added test: "Root password is set" +- Added test: "Avahi package installed" +- Added test: "nss-mdns configured" +- Added test: "Hostname is archzfs" +- Changed hostname test to use `cat /etc/hostname` + +*** ~/code/archsetup/inbox/console-display-issues.txt (NEW FILE) +Documented 5 potential console issues from earlier investigation. + +** After Build Completes + +1. Write ISO to USB drives (/dev/sda and /dev/sdb) +2. Wait for Craig's confirmation before testing on ratio +3. Commit changes after successful test + +** Commit Message (After Testing Succeeds) + +#+begin_src bash +git add -A +git commit -m "Fix mDNS, hostname, and build safety + +- Add safe_cleanup_work_dir() to prevent /dev corruption on interrupted builds +- Fix shadow file: use sed to modify root entry instead of replacing file +- Add /etc/hosts and /etc/nsswitch.conf for proper hostname/mDNS +- Add inetutils package for hostname command +- Add sanity tests for password, avahi, mdns, and hostname" +#+end_src |
