main 6af0a61

start-qemu-arch-iso.sh RawHistoryFolder

1#!/bin/bash
2# Start Arch ISO in QEMU with realistic hardware profile
3# Usage: ./start-qemu-arch-iso.sh [--profile desktop|laptop] [--secure-boot on|off] [--ssh-port PORT]
4set -euo pipefail
5
6TEST_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7ISO_FILE="$TEST_DIR/archlinux-x86_64.iso"
8ISO_URL="https://geo.mirror.pkgbuild.com/iso/latest/archlinux-x86_64.iso"
9
10PROFILE="desktop"
11SECURE_BOOT="off"
12SSH_PORT="2222"
13
14while [[ $# -gt 0 ]]; do
15  case "$1" in
16    --profile) PROFILE="$2"; shift 2 ;;
17    --secure-boot) SECURE_BOOT="$2"; shift 2 ;;
18    --ssh-port) SSH_PORT="$2"; shift 2 ;;
19    *) echo "Unknown flag: $1" >&2; exit 1 ;;
20  esac
21done
22
23if [[ ! -f "$ISO_FILE" ]]; then
24  echo "Arch Linux ISO not found in $TEST_DIR"
25  echo "Downloading latest Arch ISO from $ISO_URL..."
26  curl -L -o "$ISO_FILE" "$ISO_URL"
27  echo "Download complete!"
28else
29  echo "Using existing ISO: $ISO_FILE"
30fi
31
32source "$TEST_DIR/lib/qemu-profile.sh"
33build_qemu_args "$PROFILE" "$SECURE_BOOT" "$SSH_PORT" "$TEST_DIR"
34
35# ISO boot additions
36QEMU_ARGS+=(-boot d)
37QEMU_ARGS+=(-cdrom "$ISO_FILE")
38
39exec qemu-system-x86_64 "${QEMU_ARGS[@]}"

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