From 328b7f8adb76ff3f38d82f603015bcf827616c63 Mon Sep 17 00:00:00 2001 From: Softer Date: Sun, 26 Apr 2026 14:40:21 +0300 Subject: [PATCH] Include git in dev ISO Add git to the package list and pre-trust the 9p-mounted source in /etc/gitconfig so `git status` / `log` / `diff` work on it out of the box. The 9p share comes in with host UIDs that do not match the guest, which would otherwise trip git's safe.directory dubious-ownership check. --- scripts/dev_vm.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/dev_vm.sh b/scripts/dev_vm.sh index 5a5dc7df..70ad5b26 100755 --- a/scripts/dev_vm.sh +++ b/scripts/dev_vm.sh @@ -130,7 +130,7 @@ BUILD_DIR=/tmp/archlive-dev # Runtime deps - python plus the list derived from pyproject.toml on the host. # Source comes via 9p, no wheel build needed. -packages=(python) +packages=(python git) while IFS= read -r p; do [ -n "$p" ] && packages+=("$p") done <<< "$RUNTIME_DEPS" @@ -147,6 +147,14 @@ for p in "${packages[@]}"; do echo "$p" >> "$BUILD_DIR/packages.x86_64" done +# Trust the 9p-mounted source for git: host UIDs differ from the guest's, +# which would otherwise trip git's safe.directory dubious-ownership check. +mkdir -p "$BUILD_DIR/airootfs/etc" +cat > "$BUILD_DIR/airootfs/etc/gitconfig" <<'GIT' +[safe] + directory = /root/archinstall-dev +GIT + # Auto-mount project, alias archinstall, print info on login mkdir -p "$BUILD_DIR/airootfs/root" cat > "$BUILD_DIR/airootfs/root/.zprofile" <<'ZP'