detached 100763f

refactor(installer): update pacstrap to use install/base.packages

commit
100763ff96513d125150756767e19650f4be488c
author
bnema · · 2025-10-21 06:12 UTC
parent
f065124
signature
unsigned
1 file · +8 -7
M install/base/pacstrap.sh +8 -7
@@ -1,11 +1,8 @@
11 #!/bin/bash
22 # Install base system with pacstrap
33
4-gum style --foreground 6 --padding "1 0 0 $PADDING_LEFT" "Installing base system..."
5-gum style --padding "0 0 1 $PADDING_LEFT" "This may take a few minutes..."
6-
7-# Read barebone package list
8-mapfile -t packages < <(grep -v '^#' "$ARCHUP_INSTALL/presets/barebone.packages" | grep -v '^$')
4+# Read base package list
5+mapfile -t packages < <(grep -v '^#' "$ARCHUP_INSTALL/base.packages" | grep -v '^$')
96
107 # Add kernel (selected in kernel.sh)
118 if [ -n "$ARCHUP_KERNEL" ]; then
@@ -25,8 +22,12 @@ if [ "$ARCHUP_ENCRYPTION" = "enabled" ]; then
2522 echo "Adding cryptsetup for LUKS encryption" >> "$ARCHUP_INSTALL_LOG_FILE"
2623 fi
2724
28-# Install base system
29-pacstrap /mnt "${packages[@]}"
25+# Install base system with spinner
26+echo "Installing ${#packages[@]} packages: ${packages[*]}" >> "$ARCHUP_INSTALL_LOG_FILE"
27+if ! run_with_spinner "Installing base system (${#packages[@]} packages)..." "pacstrap /mnt ${packages[*]}"; then
28+ gum style --foreground 1 --padding "1 0 1 $PADDING_LEFT" "[ERROR] Base system installation failed"
29+ exit 1
30+fi
3031
3132 gum style --foreground 2 --padding "1 0 1 $PADDING_LEFT" "[OK] Base system installed"
3233
@@ -1,11 +1,8 @@
1 #!/bin/bash1 #!/bin/bash
2 # Install base system with pacstrap2 # Install base system with pacstrap
3 3
4-gum style --foreground 6 --padding "1 0 0 $PADDING_LEFT" "Installing base system..."4+# Read base package list
5-gum style --padding "0 0 1 $PADDING_LEFT" "This may take a few minutes..."5+mapfile -t packages < <(grep -v '^#' "$ARCHUP_INSTALL/base.packages" | grep -v '^$')
6-
7-# Read barebone package list
8-mapfile -t packages < <(grep -v '^#' "$ARCHUP_INSTALL/presets/barebone.packages" | grep -v '^$')
9 6
10 # Add kernel (selected in kernel.sh)7 # Add kernel (selected in kernel.sh)
11 if [ -n "$ARCHUP_KERNEL" ]; then8 if [ -n "$ARCHUP_KERNEL" ]; then
@@ -25,8 +22,12 @@ if [ "$ARCHUP_ENCRYPTION" = "enabled" ]; then
25 echo "Adding cryptsetup for LUKS encryption" >> "$ARCHUP_INSTALL_LOG_FILE"22 echo "Adding cryptsetup for LUKS encryption" >> "$ARCHUP_INSTALL_LOG_FILE"
26 fi23 fi
27 24
28-# Install base system25+# Install base system with spinner
29-pacstrap /mnt "${packages[@]}"26+echo "Installing ${#packages[@]} packages: ${packages[*]}" >> "$ARCHUP_INSTALL_LOG_FILE"
27+if ! run_with_spinner "Installing base system (${#packages[@]} packages)..." "pacstrap /mnt ${packages[*]}"; then
28+ gum style --foreground 1 --padding "1 0 1 $PADDING_LEFT" "[ERROR] Base system installation failed"
29+ exit 1
30+fi
30 31
31 gum style --foreground 2 --padding "1 0 1 $PADDING_LEFT" "[OK] Base system installed"32 gum style --foreground 2 --padding "1 0 1 $PADDING_LEFT" "[OK] Base system installed"
32 33

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