summaryrefslogtreecommitdiffstats
path: root/scripts/auto-opencode-setup.sh
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-21 11:09:36 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-21 11:09:36 -0400
commitad1f7a6a3cd262cc084673ec5cf0c561328ec7c7 (patch)
treee3369e40b8f36345911091b542021a4899bb474d /scripts/auto-opencode-setup.sh
parent0ca41da65d675b624fb6389da1f488a24ea416e1 (diff)
downloadopen-iov-ad1f7a6a3cd262cc084673ec5cf0c561328ec7c7.tar.gz
open-iov-ad1f7a6a3cd262cc084673ec5cf0c561328ec7c7.zip
Make repo fully path-portable and add reproducible installer
- install.sh: one-command fresh-Ubuntu reproduction (deps, NVIDIA clone + patch, GSP firmware fetch from linux-firmware.git with objcopy .fwimage extraction + MD5 verify, ordered build, host config, load, mdev creation). Wrapper-neutral: works with libvirt/raw QEMU. - patches/nvidia: regenerated path-independent patch (KBUILD_EXTRA_SYMBOLS resolved via $(src)/$(CURDIR) relative to the NVIDIA tree). - scripts/stack_manager.sh and helper scripts auto-detect repo root (OPEN_IOV_ROOT override); no hardcoded developer paths anywhere. - firmware analysis scripts use script-relative paths (also fixes stale firmware/570-GSP references); docs/wiki updated to $OPEN_IOV_ROOT. - .github/workflows/ci.yml updated for standalone repo layout; firmware fetched from linux-firmware in CI. - Untrack remaining kbuild artifacts (Module.symvers, modules.order, *.o.d); gitignore them. - STATE.md: live project state, limitations, fixed/open bugs. - README.md: rewritten for clone-and-run reproducibility.
Diffstat (limited to 'scripts/auto-opencode-setup.sh')
-rwxr-xr-xscripts/auto-opencode-setup.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/auto-opencode-setup.sh b/scripts/auto-opencode-setup.sh
index 3f98eac..4126d3d 100755
--- a/scripts/auto-opencode-setup.sh
+++ b/scripts/auto-opencode-setup.sh
@@ -71,7 +71,7 @@ command -v opencode &>/dev/null || exit 0
[[ -n "$TMUX" ]] && exit 0
# Target directory
-TARGET_DIR="$OPEN_IOV_ROOT/.."
+TARGET_DIR="__OPEN_IOV_PARENT__"
# Session name
SESSION_NAME="auto-opencode"
@@ -103,6 +103,10 @@ sleep 1
exec tmux attach-session -t "$SESSION_NAME"
SCRIPTEOF
+ # Bake in the repo parent dir (resolved at setup time)
+ local repo_parent
+ repo_parent="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
+ sed -i "s|__OPEN_IOV_PARENT__|$repo_parent|g" "$AUTO_OPENCODE_SCRIPT"
chmod +x "$AUTO_OPENCODE_SCRIPT"
log_ok "Created auto-opencode script: $AUTO_OPENCODE_SCRIPT"
}
@@ -115,7 +119,7 @@ setup_graphical_autologin() {
sudo tee /etc/gdm3/custom.conf > /dev/null <<EOF
[daemon]
AutomaticLoginEnable=true
-AutomaticLogin=rmcore
+AutomaticLogin=${USER}
WaylandEnable=false
[security]