Add a Linux version for PCs that won't boot Windows #5
Loading…
Reference in a new issue
No description provided.
Delete branch "linux-quick"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
linux/inventory.py, a quick Linux version of the v1 inventory for PCs whose Windows won't boot (PC-002 first). Boot any live Linux USB (Ubuntu "Try Ubuntu", or Ventoy) and runsudo python3 <stick>/inventory/inventory-linux.py.What it does
pending/<ID>_<time>/with report.md, report.json, summary.md, title.txt, private.txt) andmachines.csvasi.ps1. A PC keeps one ID whichever script runs.Get-HwFingerprintin pwsh: identical for both Dell tags and for the MAC fallback.pending/.Never writes to the PC
blockdev --setro(and verified) before anything is mounted. NTFS is only mountedro, under tmpfs.guard(): the resolved target must be on a disk identified as USB/removable, or on tmpfs. Symlink and mount escapes are refused, and a failedlsblkdisables disk output.Testing
py_compile, parser fixtures (dmidecode, lspci, EDID, smartctl JSON including open-failed and no-SMART), the write guard on a mocked mount layout, and amachines.csvround trip with pwshImport-Csv/Export-Csv.workbench validatefails in workbench's ownensure-test.shlink tests (unrelated to this repo). gitleaks' only hit is the existing token ini.ps1.Review-gate: gpt-6.1-sol fix-then-ship, fixed and rechecked
guard()on every resolved write, SMART needs real health evidence, and empty DMI memory is WARN.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.