Files
broom/.gitattributes
morningstar-sudo 6baa0f37f1 refactor: scripts as files, split winstage/publish/machines, shared API helpers
- the 8 embedded shell/PowerShell scripts move to mgmt/scripts/ (still
  include_str! into the binary, byte-identical: same golden key, no client
  rebuild); .gitattributes keeps them LF on every checkout
- winstage.rs → winstage/{mod.rs (publish + golden), stage.rs (client
  stage bundle), prep.rs (what goes into the golden)}
- publish.rs → golden.rs (upload → raw) + chunks.rs (hashes, manifest,
  delta chunks) + publish.rs (Linux iSCSI/zram)
- machines.rs → machines.rs (table) + license.rs (keys, boot reports) +
  settings.rs (boot menu, zram, DHCP, guest user)
- api.rs: ApiError/ise/bad/ok shared instead of 4 copies; duplicate now()
  helpers use crate::now_secs
- fix: pxe_seen (fed by public endpoints) drops entries older than 30 min;
  the driver-set baseline is kept for registered machines only — neither
  grows with made-up MACs any more
2026-10-04 08:45:15 +07:00

8 lines
366 B
Plaintext

# Line endings: shell scripts must stay LF (bash in WSL/Linux), cmd scripts CRLF.
*.sh text eol=lf
*.cmd text eol=crlf
*.efi binary
# Scripts embedded in the binary (include_str!): byte-exact LF on every checkout — CRLF would break the client
# stage / Linux hooks, and the PowerShell files get CRLF added when written into the golden.
mgmt/scripts/* text eol=lf