detached 0f21d5d

refactor(post-boot): remove stdout output from first-boot service logging

commit
0f21d5d9bdc94158e4236d15d2488fe4921d153d
author
bnema · · 2025-10-28 18:03 UTC
committer
bnema · · 2025-10-28 21:41 UTC
parent
bc09266
signature
unsigned
3 files · +19 -28
M install/post-boot/all.sh +17 -26
@@ -9,68 +9,59 @@ if [ -f /usr/local/share/archup/logo.txt ]; then
99 echo ""
1010 fi
1111
12-echo "=== ArchUp First Boot Setup - $(date) ===" | tee "$LOG_FILE"
13-echo ""
12+echo "=== ArchUp First Boot Setup - $(date) ===" >> "$LOG_FILE"
1413
1514 # Run snapper configuration
1615 if [ -f /usr/local/share/archup/post-boot/snapper.sh ]; then
17- echo "Configuring snapper..." | tee -a "$LOG_FILE"
16+ echo "Configuring snapper..." >> "$LOG_FILE"
1817 if bash /usr/local/share/archup/post-boot/snapper.sh >> "$LOG_FILE" 2>&1; then
19- echo "Snapper configured successfully" | tee -a "$LOG_FILE"
18+ echo "Snapper configured successfully" >> "$LOG_FILE"
2019 else
21- echo "Snapper configuration failed (non-critical)" | tee -a "$LOG_FILE"
20+ echo "Snapper configuration failed (non-critical)" >> "$LOG_FILE"
2221 fi
2322 fi
2423
2524 # Configure UFW firewall
2625 if [ -f /usr/local/share/archup/post-boot/ufw.sh ]; then
27- echo "Configuring firewall..." | tee -a "$LOG_FILE"
26+ echo "Configuring firewall..." >> "$LOG_FILE"
2827 if bash /usr/local/share/archup/post-boot/ufw.sh >> "$LOG_FILE" 2>&1; then
29- echo "Firewall configured successfully" | tee -a "$LOG_FILE"
28+ echo "Firewall configured successfully" >> "$LOG_FILE"
3029 else
31- echo "Firewall configuration failed (non-critical)" | tee -a "$LOG_FILE"
30+ echo "Firewall configuration failed (non-critical)" >> "$LOG_FILE"
3231 fi
3332 fi
3433
3534 # Run SSH key generation
3635 if [ -f /usr/local/share/archup/post-boot/ssh-keygen.sh ]; then
37- echo "Generating SSH keys..." | tee -a "$LOG_FILE"
36+ echo "Generating SSH keys..." >> "$LOG_FILE"
3837 if bash /usr/local/share/archup/post-boot/ssh-keygen.sh >> "$LOG_FILE" 2>&1; then
39- echo "✓ SSH keys generated successfully" | tee -a "$LOG_FILE"
38+ echo "[OK] SSH keys generated successfully" >> "$LOG_FILE"
4039 else
41- echo "✗ SSH key generation failed (non-critical)" | tee -a "$LOG_FILE"
40+ echo "[KO] SSH key generation failed (non-critical)" >> "$LOG_FILE"
4241 fi
4342 fi
4443
4544 # Install archup-cli from GitHub
4645 if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then
47- echo "Installing archup-cli from GitHub..." | tee -a "$LOG_FILE"
46+ echo "Installing archup-cli from GitHub..." >> "$LOG_FILE"
4847 if bash /usr/local/share/archup/post-boot/archup-cli.sh >> "$LOG_FILE" 2>&1; then
49- echo "✓ archup-cli installed successfully" | tee -a "$LOG_FILE"
48+ echo "[OK] archup-cli installed successfully" >> "$LOG_FILE"
5049 else
51- echo "✗ archup-cli installation failed (non-critical)" | tee -a "$LOG_FILE"
50+ echo "[KO] archup-cli installation failed (non-critical)" >> "$LOG_FILE"
5251 fi
5352 fi
5453
5554 # Install ble.sh (Bash Line Editor)
5655 if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then
57- echo "Installing ble.sh (Bash Line Editor)..." | tee -a "$LOG_FILE"
56+ echo "Installing ble.sh (Bash Line Editor)..." >> "$LOG_FILE"
5857 if bash /usr/local/share/archup/post-boot/blesh.sh >> "$LOG_FILE" 2>&1; then
59- echo "✓ ble.sh installed successfully" | tee -a "$LOG_FILE"
58+ echo "[OK] ble.sh installed successfully" >> "$LOG_FILE"
6059 else
61- echo "✗ ble.sh installation failed (non-critical)" | tee -a "$LOG_FILE"
60+ echo "[KO] ble.sh installation failed (non-critical)" >> "$LOG_FILE"
6261 fi
6362 fi
6463
6564 echo "=== First Boot Setup Complete ===" >> "$LOG_FILE"
6665
6766 # Disable this service after first run
68-systemctl disable archup-first-boot.service
69-
70-echo ""
71-echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
72-echo " ✓ ArchUp is ready!"
73-echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
74-echo ""
75-echo " Next: Run 'archup wizard' to configure your system"
76-echo ""
67+systemctl disable archup-first-boot.service >> "$LOG_FILE" 2>&1
@@ -9,68 +9,59 @@ if [ -f /usr/local/share/archup/logo.txt ]; then
9 echo ""9 echo ""
10 fi10 fi
11 11
12-echo "=== ArchUp First Boot Setup - $(date) ===" | tee "$LOG_FILE"12+echo "=== ArchUp First Boot Setup - $(date) ===" >> "$LOG_FILE"
13-echo ""
14 13
15 # Run snapper configuration14 # Run snapper configuration
16 if [ -f /usr/local/share/archup/post-boot/snapper.sh ]; then15 if [ -f /usr/local/share/archup/post-boot/snapper.sh ]; then
17- echo "Configuring snapper..." | tee -a "$LOG_FILE"16+ echo "Configuring snapper..." >> "$LOG_FILE"
18 if bash /usr/local/share/archup/post-boot/snapper.sh >> "$LOG_FILE" 2>&1; then17 if bash /usr/local/share/archup/post-boot/snapper.sh >> "$LOG_FILE" 2>&1; then
19- echo "Snapper configured successfully" | tee -a "$LOG_FILE"18+ echo "Snapper configured successfully" >> "$LOG_FILE"
20 else19 else
21- echo "Snapper configuration failed (non-critical)" | tee -a "$LOG_FILE"20+ echo "Snapper configuration failed (non-critical)" >> "$LOG_FILE"
22 fi21 fi
23 fi22 fi
24 23
25 # Configure UFW firewall24 # Configure UFW firewall
26 if [ -f /usr/local/share/archup/post-boot/ufw.sh ]; then25 if [ -f /usr/local/share/archup/post-boot/ufw.sh ]; then
27- echo "Configuring firewall..." | tee -a "$LOG_FILE"26+ echo "Configuring firewall..." >> "$LOG_FILE"
28 if bash /usr/local/share/archup/post-boot/ufw.sh >> "$LOG_FILE" 2>&1; then27 if bash /usr/local/share/archup/post-boot/ufw.sh >> "$LOG_FILE" 2>&1; then
29- echo "Firewall configured successfully" | tee -a "$LOG_FILE"28+ echo "Firewall configured successfully" >> "$LOG_FILE"
30 else29 else
31- echo "Firewall configuration failed (non-critical)" | tee -a "$LOG_FILE"30+ echo "Firewall configuration failed (non-critical)" >> "$LOG_FILE"
32 fi31 fi
33 fi32 fi
34 33
35 # Run SSH key generation34 # Run SSH key generation
36 if [ -f /usr/local/share/archup/post-boot/ssh-keygen.sh ]; then35 if [ -f /usr/local/share/archup/post-boot/ssh-keygen.sh ]; then
37- echo "Generating SSH keys..." | tee -a "$LOG_FILE"36+ echo "Generating SSH keys..." >> "$LOG_FILE"
38 if bash /usr/local/share/archup/post-boot/ssh-keygen.sh >> "$LOG_FILE" 2>&1; then37 if bash /usr/local/share/archup/post-boot/ssh-keygen.sh >> "$LOG_FILE" 2>&1; then
39- echo "✓ SSH keys generated successfully" | tee -a "$LOG_FILE"38+ echo "[OK] SSH keys generated successfully" >> "$LOG_FILE"
40 else39 else
41- echo "✗ SSH key generation failed (non-critical)" | tee -a "$LOG_FILE"40+ echo "[KO] SSH key generation failed (non-critical)" >> "$LOG_FILE"
42 fi41 fi
43 fi42 fi
44 43
45 # Install archup-cli from GitHub44 # Install archup-cli from GitHub
46 if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then45 if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then
47- echo "Installing archup-cli from GitHub..." | tee -a "$LOG_FILE"46+ echo "Installing archup-cli from GitHub..." >> "$LOG_FILE"
48 if bash /usr/local/share/archup/post-boot/archup-cli.sh >> "$LOG_FILE" 2>&1; then47 if bash /usr/local/share/archup/post-boot/archup-cli.sh >> "$LOG_FILE" 2>&1; then
49- echo "✓ archup-cli installed successfully" | tee -a "$LOG_FILE"48+ echo "[OK] archup-cli installed successfully" >> "$LOG_FILE"
50 else49 else
51- echo "✗ archup-cli installation failed (non-critical)" | tee -a "$LOG_FILE"50+ echo "[KO] archup-cli installation failed (non-critical)" >> "$LOG_FILE"
52 fi51 fi
53 fi52 fi
54 53
55 # Install ble.sh (Bash Line Editor)54 # Install ble.sh (Bash Line Editor)
56 if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then55 if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then
57- echo "Installing ble.sh (Bash Line Editor)..." | tee -a "$LOG_FILE"56+ echo "Installing ble.sh (Bash Line Editor)..." >> "$LOG_FILE"
58 if bash /usr/local/share/archup/post-boot/blesh.sh >> "$LOG_FILE" 2>&1; then57 if bash /usr/local/share/archup/post-boot/blesh.sh >> "$LOG_FILE" 2>&1; then
59- echo "✓ ble.sh installed successfully" | tee -a "$LOG_FILE"58+ echo "[OK] ble.sh installed successfully" >> "$LOG_FILE"
60 else59 else
61- echo "✗ ble.sh installation failed (non-critical)" | tee -a "$LOG_FILE"60+ echo "[KO] ble.sh installation failed (non-critical)" >> "$LOG_FILE"
62 fi61 fi
63 fi62 fi
64 63
65 echo "=== First Boot Setup Complete ===" >> "$LOG_FILE"64 echo "=== First Boot Setup Complete ===" >> "$LOG_FILE"
66 65
67 # Disable this service after first run66 # Disable this service after first run
68-systemctl disable archup-first-boot.service67+systemctl disable archup-first-boot.service >> "$LOG_FILE" 2>&1
69-
70-echo ""
71-echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
72-echo " ✓ ArchUp is ready!"
73-echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
74-echo ""
75-echo " Next: Run 'archup wizard' to configure your system"
76-echo ""
M install/post-boot/archup-cli.sh +1 -1
@@ -35,7 +35,7 @@ BINARY_PATH="${GOBIN}/archup-cli"
3535
3636 # Verify installation
3737 if [ -x "$BINARY_PATH" ]; then
38- echo "✓ archup-cli installed successfully"
38+ echo "[OK] archup-cli installed successfully"
3939 echo " Location: $BINARY_PATH"
4040 echo " Version: $($BINARY_PATH --version 2>/dev/null || echo 'unknown')"
4141 echo ""
@@ -35,7 +35,7 @@ BINARY_PATH="${GOBIN}/archup-cli"
35 35
36 # Verify installation36 # Verify installation
37 if [ -x "$BINARY_PATH" ]; then37 if [ -x "$BINARY_PATH" ]; then
38- echo "✓ archup-cli installed successfully"38+ echo "[OK] archup-cli installed successfully"
39 echo " Location: $BINARY_PATH"39 echo " Location: $BINARY_PATH"
40 echo " Version: $($BINARY_PATH --version 2>/dev/null || echo 'unknown')"40 echo " Version: $($BINARY_PATH --version 2>/dev/null || echo 'unknown')"
41 echo ""41 echo ""
M install/post-boot/blesh.sh +1 -1
@@ -48,6 +48,6 @@ EOF
4848 # Cleanup
4949 rm -rf /tmp/ble.sh
5050
51-echo "✓ ble.sh installed successfully"
51+echo "[OK] ble.sh installed successfully"
5252 echo " Location: $BLESH_INSTALL_DIR/share/blesh"
5353 echo " Note: ble.sh will be active on next shell session"
@@ -48,6 +48,6 @@ EOF
48 # Cleanup48 # Cleanup
49 rm -rf /tmp/ble.sh49 rm -rf /tmp/ble.sh
50 50
51-echo "✓ ble.sh installed successfully"51+echo "[OK] ble.sh installed successfully"
52 echo " Location: $BLESH_INSTALL_DIR/share/blesh"52 echo " Location: $BLESH_INSTALL_DIR/share/blesh"
53 echo " Note: ble.sh will be active on next shell session"53 echo " Note: ble.sh will be active on next shell session"

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