detached 163504c

fix(verify): disable ERR trap, use dynamic kernel name, make fallback initramfs optional

commit
163504c5b7b73b4a17470ef204826bedfc72de1e
author
bnema · · 2025-10-20 18:25 UTC
committer
bnema · · 2025-10-20 20:22 UTC
parent
43bde40
signature
unsigned
2 files · +21 -3
M CHANGELOG.md +1 -0
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
1010 ### Fixed
1111 - **Curl-pipe installation**: Fixed curl-based one-liner installation by auto-detecting piped input, re-executing with TTY for interactive prompts, and running bootstrap before downloads
1212 - **Cleanup flag**: Fixed --cleanup flag to run after helper files are downloaded
13+- **Verification script**: Disabled ERR trap during verification to properly show all failures and prompt user, use dynamic kernel name instead of hardcoded linux, made fallback initramfs optional
1314
1415 ## [0.1.0] - 2025-10-21
1516
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
10 ### Fixed10 ### Fixed
11 - **Curl-pipe installation**: Fixed curl-based one-liner installation by auto-detecting piped input, re-executing with TTY for interactive prompts, and running bootstrap before downloads11 - **Curl-pipe installation**: Fixed curl-based one-liner installation by auto-detecting piped input, re-executing with TTY for interactive prompts, and running bootstrap before downloads
12 - **Cleanup flag**: Fixed --cleanup flag to run after helper files are downloaded12 - **Cleanup flag**: Fixed --cleanup flag to run after helper files are downloaded
13+- **Verification script**: Disabled ERR trap during verification to properly show all failures and prompt user, use dynamic kernel name instead of hardcoded linux, made fallback initramfs optional
13 14
14 ## [0.1.0] - 2025-10-2115 ## [0.1.0] - 2025-10-21
15 16
M install/post-install/verify.sh +20 -3
@@ -1,6 +1,10 @@
11 #!/bin/bash
22 # Post-install verification: Ensure everything is configured correctly
33
4+# Disable exit-on-error and ERR trap for this script since we handle failures gracefully
5+set +e
6+trap - ERR
7+
48 #######################################
59 # Description: Verify installation components
610 # Globals:
@@ -55,9 +59,18 @@ verify_dir() {
5559 return 1
5660 fi
5761 }
58-verify_file "/boot/vmlinuz-linux" "Kernel"
59-verify_file "/boot/initramfs-linux.img" "Initramfs"
60-verify_file "/boot/initramfs-linux-fallback.img" "Fallback initramfs"
62+# Use the selected kernel name from config
63+KERNEL_NAME="${ARCHUP_KERNEL:-linux}"
64+
65+verify_file "/boot/vmlinuz-${KERNEL_NAME}" "Kernel"
66+verify_file "/boot/initramfs-${KERNEL_NAME}.img" "Initramfs"
67+
68+# Fallback initramfs is optional
69+if [ -f "/mnt/boot/initramfs-${KERNEL_NAME}-fallback.img" ]; then
70+ echo "[OK] Fallback initramfs: /boot/initramfs-${KERNEL_NAME}-fallback.img" >> "$ARCHUP_INSTALL_LOG_FILE"
71+else
72+ echo "[WARN] Fallback initramfs not generated (optional)" >> "$ARCHUP_INSTALL_LOG_FILE"
73+fi
6174
6275 verify_file "/boot/EFI/limine/BOOTX64.EFI" "Limine bootloader"
6376 verify_file "/boot/EFI/limine/limine.conf" "Limine configuration"
@@ -128,3 +141,7 @@ else
128141 gum style --foreground 3 --padding "0 0 1 $PADDING_LEFT" "[WARN] Continuing despite verification errors"
129142 echo "User chose to continue despite verification errors" >> "$ARCHUP_INSTALL_LOG_FILE"
130143 fi
144+
145+# Re-enable exit-on-error and ERR trap for subsequent scripts
146+set -e
147+trap 'catch_errors' ERR
@@ -1,6 +1,10 @@
1 #!/bin/bash1 #!/bin/bash
2 # Post-install verification: Ensure everything is configured correctly2 # Post-install verification: Ensure everything is configured correctly
3 3
4+# Disable exit-on-error and ERR trap for this script since we handle failures gracefully
5+set +e
6+trap - ERR
7+
4 #######################################8 #######################################
5 # Description: Verify installation components9 # Description: Verify installation components
6 # Globals:10 # Globals:
@@ -55,9 +59,18 @@ verify_dir() {
55 return 159 return 1
56 fi60 fi
57 }61 }
58-verify_file "/boot/vmlinuz-linux" "Kernel"62+# Use the selected kernel name from config
59-verify_file "/boot/initramfs-linux.img" "Initramfs"63+KERNEL_NAME="${ARCHUP_KERNEL:-linux}"
60-verify_file "/boot/initramfs-linux-fallback.img" "Fallback initramfs"64+
65+verify_file "/boot/vmlinuz-${KERNEL_NAME}" "Kernel"
66+verify_file "/boot/initramfs-${KERNEL_NAME}.img" "Initramfs"
67+
68+# Fallback initramfs is optional
69+if [ -f "/mnt/boot/initramfs-${KERNEL_NAME}-fallback.img" ]; then
70+ echo "[OK] Fallback initramfs: /boot/initramfs-${KERNEL_NAME}-fallback.img" >> "$ARCHUP_INSTALL_LOG_FILE"
71+else
72+ echo "[WARN] Fallback initramfs not generated (optional)" >> "$ARCHUP_INSTALL_LOG_FILE"
73+fi
61 74
62 verify_file "/boot/EFI/limine/BOOTX64.EFI" "Limine bootloader"75 verify_file "/boot/EFI/limine/BOOTX64.EFI" "Limine bootloader"
63 verify_file "/boot/EFI/limine/limine.conf" "Limine configuration"76 verify_file "/boot/EFI/limine/limine.conf" "Limine configuration"
@@ -128,3 +141,7 @@ else
128 gum style --foreground 3 --padding "0 0 1 $PADDING_LEFT" "[WARN] Continuing despite verification errors"141 gum style --foreground 3 --padding "0 0 1 $PADDING_LEFT" "[WARN] Continuing despite verification errors"
129 echo "User chose to continue despite verification errors" >> "$ARCHUP_INSTALL_LOG_FILE"142 echo "User chose to continue despite verification errors" >> "$ARCHUP_INSTALL_LOG_FILE"
130 fi143 fi
144+
145+# Re-enable exit-on-error and ERR trap for subsequent scripts
146+set -e
147+trap 'catch_errors' ERR

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 0

    ↑↓ moveenter openesc close