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.
This commit is contained in:
Softer 2026-04-26 14:40:21 +03:00
parent 3829bbe80b
commit 328b7f8adb
1 changed files with 9 additions and 1 deletions

View File

@ -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'