Commit Graph

4 Commits

Author SHA1 Message Date
Softer 363311821f Add --bios flag and consolidate .dev/ artifacts
Support legacy BIOS boot via --bios flag (SeaBIOS, skips OVMF).
Move all dev VM artifacts from .dev-* into .dev/ subdirectory.
Auto-install edk2-ovmf when UEFI firmware is missing.
2026-05-05 02:20:21 +03:00
Softer 868d6d1c13 Share /var/log/archinstall via 9p in dev VM and clear it per run
Replace the plain `archinstall` alias with a function that wipes the log
directory contents before each run, and add a third 9p share so the guest
log directory is backed by .dev-logs/ on the host. The host can now tail
install.log live without re-entering the VM, and successive iterations
start with an empty log without rebooting.

The wipe uses find -mindepth 1 -delete because /var/log/archinstall is
a 9p mountpoint - removing the directory itself would unmount the share.

Cleanup: dev_vm.sh clean now also removes .dev-logs/.
2026-04-28 13:33:50 +03:00
Softer 328b7f8adb 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.
2026-04-26 14:40:21 +03:00
Softer 3829bbe80b Move dev_vm.sh under scripts/ and split out Python helper
Address svartkanin's review on #4470. Two related changes:

- Move dev_vm.sh to scripts/dev_vm.sh and split SCRIPT_DIR (where
  the script lives) from PROJECT_DIR (project root, parent of
  scripts/). All .dev-* artifact paths now anchor on PROJECT_DIR
  so they still land in the repo root where .gitignore matches
  them. Both invocations work: ./scripts/dev_vm.sh from project
  root and ./dev_vm.sh from inside scripts/.

- Extract the inline pyproject.toml parser from a bash heredoc
  into scripts/derive_packages.py. Same logic, less mixed-language
  noise.

The whole-script bash -> Python question is left open until
@Torxed weighs in on principled inclusion of dev tooling in
archinstall.
2026-04-26 14:20:15 +03:00