detached d24ff91

fix(post-boot): improve error handling with non-critical failure messages

commit
d24ff914ff4a5393677baff68fac5e854d940b9c
author
bnema · · 2025-10-21 17:01 UTC
parent
93f3a7e
signature
unsigned
1 file · +15 -5
M install/post-boot/all.sh +15 -5
@@ -1,8 +1,6 @@
11 #!/bin/bash
22 # ArchUp First Boot - Post-boot tasks that require running system
33
4-set -e
5-
64 LOG_FILE="/var/log/archup-first-boot.log"
75
86 echo "=== ArchUp First Boot Setup - $(date) ===" > "$LOG_FILE"
@@ -10,19 +8,31 @@ echo "=== ArchUp First Boot Setup - $(date) ===" > "$LOG_FILE"
108 # Run snapper configuration
119 if [ -f /usr/local/share/archup/post-boot/snapper.sh ]; then
1210 echo "Configuring snapper..." | tee -a "$LOG_FILE"
13- bash /usr/local/share/archup/post-boot/snapper.sh >> "$LOG_FILE" 2>&1
11+ if bash /usr/local/share/archup/post-boot/snapper.sh >> "$LOG_FILE" 2>&1; then
12+ echo "✓ Snapper configured successfully" | tee -a "$LOG_FILE"
13+ else
14+ echo "✗ Snapper configuration failed (non-critical)" | tee -a "$LOG_FILE"
15+ fi
1416 fi
1517
1618 # Run SSH key generation
1719 if [ -f /usr/local/share/archup/post-boot/ssh-keygen.sh ]; then
1820 echo "Generating SSH keys..." | tee -a "$LOG_FILE"
19- bash /usr/local/share/archup/post-boot/ssh-keygen.sh >> "$LOG_FILE" 2>&1
21+ if bash /usr/local/share/archup/post-boot/ssh-keygen.sh >> "$LOG_FILE" 2>&1; then
22+ echo "✓ SSH keys generated successfully" | tee -a "$LOG_FILE"
23+ else
24+ echo "✗ SSH key generation failed (non-critical)" | tee -a "$LOG_FILE"
25+ fi
2026 fi
2127
2228 # Install archup-cli from GitHub
2329 if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then
2430 echo "Installing archup-cli from GitHub..." | tee -a "$LOG_FILE"
25- bash /usr/local/share/archup/post-boot/archup-cli.sh >> "$LOG_FILE" 2>&1
31+ if bash /usr/local/share/archup/post-boot/archup-cli.sh >> "$LOG_FILE" 2>&1; then
32+ echo "✓ archup-cli installed successfully" | tee -a "$LOG_FILE"
33+ else
34+ echo "✗ archup-cli installation failed (non-critical)" | tee -a "$LOG_FILE"
35+ fi
2636 fi
2737
2838 echo "=== First Boot Setup Complete ===" >> "$LOG_FILE"
@@ -1,8 +1,6 @@
1 #!/bin/bash1 #!/bin/bash
2 # ArchUp First Boot - Post-boot tasks that require running system2 # ArchUp First Boot - Post-boot tasks that require running system
3 3
4-set -e
5-
6 LOG_FILE="/var/log/archup-first-boot.log"4 LOG_FILE="/var/log/archup-first-boot.log"
7 5
8 echo "=== ArchUp First Boot Setup - $(date) ===" > "$LOG_FILE"6 echo "=== ArchUp First Boot Setup - $(date) ===" > "$LOG_FILE"
@@ -10,19 +8,31 @@ echo "=== ArchUp First Boot Setup - $(date) ===" > "$LOG_FILE"
10 # Run snapper configuration8 # Run snapper configuration
11 if [ -f /usr/local/share/archup/post-boot/snapper.sh ]; then9 if [ -f /usr/local/share/archup/post-boot/snapper.sh ]; then
12 echo "Configuring snapper..." | tee -a "$LOG_FILE"10 echo "Configuring snapper..." | tee -a "$LOG_FILE"
13- bash /usr/local/share/archup/post-boot/snapper.sh >> "$LOG_FILE" 2>&111+ if bash /usr/local/share/archup/post-boot/snapper.sh >> "$LOG_FILE" 2>&1; then
12+ echo "✓ Snapper configured successfully" | tee -a "$LOG_FILE"
13+ else
14+ echo "✗ Snapper configuration failed (non-critical)" | tee -a "$LOG_FILE"
15+ fi
14 fi16 fi
15 17
16 # Run SSH key generation18 # Run SSH key generation
17 if [ -f /usr/local/share/archup/post-boot/ssh-keygen.sh ]; then19 if [ -f /usr/local/share/archup/post-boot/ssh-keygen.sh ]; then
18 echo "Generating SSH keys..." | tee -a "$LOG_FILE"20 echo "Generating SSH keys..." | tee -a "$LOG_FILE"
19- bash /usr/local/share/archup/post-boot/ssh-keygen.sh >> "$LOG_FILE" 2>&121+ if bash /usr/local/share/archup/post-boot/ssh-keygen.sh >> "$LOG_FILE" 2>&1; then
22+ echo "✓ SSH keys generated successfully" | tee -a "$LOG_FILE"
23+ else
24+ echo "✗ SSH key generation failed (non-critical)" | tee -a "$LOG_FILE"
25+ fi
20 fi26 fi
21 27
22 # Install archup-cli from GitHub28 # Install archup-cli from GitHub
23 if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then29 if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then
24 echo "Installing archup-cli from GitHub..." | tee -a "$LOG_FILE"30 echo "Installing archup-cli from GitHub..." | tee -a "$LOG_FILE"
25- bash /usr/local/share/archup/post-boot/archup-cli.sh >> "$LOG_FILE" 2>&131+ if bash /usr/local/share/archup/post-boot/archup-cli.sh >> "$LOG_FILE" 2>&1; then
32+ echo "✓ archup-cli installed successfully" | tee -a "$LOG_FILE"
33+ else
34+ echo "✗ archup-cli installation failed (non-critical)" | tee -a "$LOG_FILE"
35+ fi
26 fi36 fi
27 37
28 echo "=== First Boot Setup Complete ===" >> "$LOG_FILE"38 echo "=== First Boot Setup Complete ===" >> "$LOG_FILE"

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