Spaces:
Runtime error

File size: 821 Bytes
56c0d82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
# Linux installation stays on terminal HOLD until the stage 11 gate verifies
# receipts 1-5 on this tip. The gate is stdlib-only and does not import a target.
# Only a clear gate may replace this process with the contained cold boot.
set -euo pipefail

ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)"
BOOTSTRAP="$ROOT/scripts/bootstrap/protected_bootstrap_v05.py"
GATE="$ROOT/scripts/bootstrap/go_live_stage11_gate.py"

if [ ! -r "$BOOTSTRAP" ] || [ ! -x /usr/bin/python3 ]; then
  echo "Protected Linux installer bootstrap unavailable; refusing installation." >&2
  exit 1
fi

if [ -r "$GATE" ] && /usr/bin/python3 -I -S -B "$GATE" --check; then
  exec /usr/bin/python3 -I -S -B "$GATE" --launch-contained
fi

exec /usr/bin/python3 -I -S -B "$BOOTSTRAP" --target-id linux-supervisor