Fix the build-container setup: it used a variable the headset doesn't have

The command that starts the container ran on the headset through a quoted
script, where $root isn't defined, so the installer stopped at step 2. The
repo path is passed to that script now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DeeJanuzandClaude Opus 5.5 committed 2026-09-26 19:17:01 -06:00
1 parent bc74097331
commit 98667c7650
1 file changed
+4 -2
+4 -2
View File
@@ -26,15 +26,17 @@ packages=(
wayland-utils xorg-x11-server-Xvfb ImageMagick xdotool wayland-utils xorg-x11-server-Xvfb ImageMagick xdotool
) )
on_frame_script "${packages[@]}" <<'EOF' on_frame_script "$FRAME_REPO" "${packages[@]}" <<'EOF'
set -euo pipefail set -euo pipefail
repo=$1
shift
distrobox=$HOME/.local/bin/distrobox distrobox=$HOME/.local/bin/distrobox
[ -x "$distrobox" ] || { echo "distrobox not found at $distrobox (see the top-level README)" >&2; exit 1; } [ -x "$distrobox" ] || { echo "distrobox not found at $distrobox (see the top-level README)" >&2; exit 1; }
if ! podman container exists dev; then if ! podman container exists dev; then
echo "creating the dev container (Fedora 44 toolbox)" echo "creating the dev container (Fedora 44 toolbox)"
"$distrobox" create --yes --name dev --image registry.fedoraproject.org/fedora-toolbox:44 "$distrobox" create --yes --name dev --image registry.fedoraproject.org/fedora-toolbox:44
fi fi
"$root/scripts/container-up.sh" "$repo/scripts/container-up.sh" # in a scope of its own, not this shell's
"$distrobox" enter dev -- bash -c ' "$distrobox" enter dev -- bash -c '
set -euo pipefail set -euo pipefail
echo "installing ${#@} packages (already-installed ones are skipped)" echo "installing ${#@} packages (already-installed ones are skipped)"