detached 47098b9

fix(vm): redirect error messages to stderr, add luksDump failure guard

commit
47098b96fcd4c8a24b55595717d7f53efca3955d
author
brice · · 2026-02-27 04:47 UTC
parent
d7743dc
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
3 files · +3 -3
M test/vm/check-luks.sh +1 -1
@@ -12,7 +12,7 @@ while [[ $# -gt 0 ]]; do
1212 done
1313
1414 echo "Checking LUKS volume on $DISK..."
15-cryptsetup luksDump "$DISK"
15+cryptsetup luksDump "$DISK" || { echo "luksDump failed — is $DISK a LUKS volume?" >&2; exit 1; }
1616
1717 echo ""
1818 echo "Trying to open with 'test' password..."
@@ -12,7 +12,7 @@ while [[ $# -gt 0 ]]; do
12 done12 done
13 13
14 echo "Checking LUKS volume on $DISK..."14 echo "Checking LUKS volume on $DISK..."
15-cryptsetup luksDump "$DISK"15+cryptsetup luksDump "$DISK" || { echo "luksDump failed — is $DISK a LUKS volume?" >&2; exit 1; }
16 16
17 echo ""17 echo ""
18 echo "Trying to open with 'test' password..."18 echo "Trying to open with 'test' password..."
M test/vm/start-qemu-arch-iso.sh +1 -1
@@ -16,7 +16,7 @@ while [[ $# -gt 0 ]]; do
1616 --profile) PROFILE="$2"; shift 2 ;;
1717 --secure-boot) SECURE_BOOT="$2"; shift 2 ;;
1818 --ssh-port) SSH_PORT="$2"; shift 2 ;;
19- *) echo "Unknown flag: $1"; exit 1 ;;
19+ *) echo "Unknown flag: $1" >&2; exit 1 ;;
2020 esac
2121 done
2222
@@ -16,7 +16,7 @@ while [[ $# -gt 0 ]]; do
16 --profile) PROFILE="$2"; shift 2 ;;16 --profile) PROFILE="$2"; shift 2 ;;
17 --secure-boot) SECURE_BOOT="$2"; shift 2 ;;17 --secure-boot) SECURE_BOOT="$2"; shift 2 ;;
18 --ssh-port) SSH_PORT="$2"; shift 2 ;;18 --ssh-port) SSH_PORT="$2"; shift 2 ;;
19- *) echo "Unknown flag: $1"; exit 1 ;;19+ *) echo "Unknown flag: $1" >&2; exit 1 ;;
20 esac20 esac
21 done21 done
22 22
M test/vm/start-qemu-installed.sh +1 -1
@@ -14,7 +14,7 @@ while [[ $# -gt 0 ]]; do
1414 --profile) PROFILE="$2"; shift 2 ;;
1515 --secure-boot) SECURE_BOOT="$2"; shift 2 ;;
1616 --ssh-port) SSH_PORT="$2"; shift 2 ;;
17- *) echo "Unknown flag: $1"; exit 1 ;;
17+ *) echo "Unknown flag: $1" >&2; exit 1 ;;
1818 esac
1919 done
2020
@@ -14,7 +14,7 @@ while [[ $# -gt 0 ]]; do
14 --profile) PROFILE="$2"; shift 2 ;;14 --profile) PROFILE="$2"; shift 2 ;;
15 --secure-boot) SECURE_BOOT="$2"; shift 2 ;;15 --secure-boot) SECURE_BOOT="$2"; shift 2 ;;
16 --ssh-port) SSH_PORT="$2"; shift 2 ;;16 --ssh-port) SSH_PORT="$2"; shift 2 ;;
17- *) echo "Unknown flag: $1"; exit 1 ;;17+ *) echo "Unknown flag: $1" >&2; exit 1 ;;
18 esac18 esac
19 done19 done
20 20

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