diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-18 07:49:47 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-18 07:49:47 -0600 |
| commit | c3418082f3bbd92163a9792121109e0deedc64fd (patch) | |
| tree | 3bdc6adac565d5c96851c0c2adcf9d879db3afba /build.sh | |
| parent | e10223f5ba70e6af675aaec231346a8f616a94f5 (diff) | |
| download | archangel-c3418082f3bbd92163a9792121109e0deedc64fd.tar.gz archangel-c3418082f3bbd92163a9792121109e0deedc64fd.zip | |
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
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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" |
