From c3418082f3bbd92163a9792121109e0deedc64fd Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 18 Jan 2026 07:49:47 -0600 Subject: Fix ZFS boot failure and update ISO naming format Bug fixes: - Fix depmod using wrong kernel version during initramfs generation The script now explicitly specifies the installed kernel version instead of relying on uname -r (which returns the live ISO kernel) - Add kernel module verification before mkinitcpio - Add hostid 0x prefix to spl.spl_hostid kernel parameter ISO naming: - Changed format to: archzfs-vmlinuz-{version}-lts-{date}-{arch}.iso - Example: archzfs-vmlinuz-6.12.65-lts-2026-01-18-x86_64.iso test-vm.sh: - Add QEMU monitor socket for automation support --- build.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 9e2be40..dd334d3 100755 --- a/build.sh +++ b/build.sh @@ -130,9 +130,21 @@ fzf dialog EOF +# Get kernel version for ISO naming +info "Querying kernel version..." +KERNEL_VER=$(pacman -Si linux-lts 2>/dev/null | grep "^Version" | awk '{print $3}' | cut -d- -f1) +if [[ -z "$KERNEL_VER" ]]; then + KERNEL_VER="unknown" + warn "Could not determine kernel version, using 'unknown'" +fi +info "LTS Kernel version: $KERNEL_VER" + # Update profiledef.sh with our ISO name info "Updating ISO metadata..." -sed -i 's/^iso_name=.*/iso_name="archzfs-claude"/' "$PROFILE_DIR/profiledef.sh" +# Format: archzfs-vmlinuz-6.12.65-lts-2026-01-18-x86_64.iso +ISO_DATE=$(date +%Y-%m-%d) +sed -i "s/^iso_name=.*/iso_name=\"archzfs-vmlinuz-${KERNEL_VER}-lts\"/" "$PROFILE_DIR/profiledef.sh" +sed -i "s/^iso_version=.*/iso_version=\"${ISO_DATE}\"/" "$PROFILE_DIR/profiledef.sh" # Create airootfs directories mkdir -p "$PROFILE_DIR/airootfs/usr/local/bin" -- cgit v1.2.3