Files
ProxmoxVE/misc
CanbiZ (MickLesk) f0147a2d99 fix: log apt-get, pveam and pct create output to BUILD_LOG
Previously, command output during customization and container creation
was discarded to /dev/null, making error logs useless for debugging.

Examples of what was lost:
- apt-get update/install errors during 'Customizing LXC Container'
- pveam download failures during template download (exit 222)
- pct create output showing why container creation failed (exit 209)

Changes:
- Redirect apt-get/apk base package output to BUILD_LOG instead of /dev/null
- Redirect all pveam download output to BUILD_LOG instead of /dev/null
- Add _flush_pct_log() helper that appends pct_create LOGFILE to BUILD_LOG
- Call _flush_pct_log() on every exit path in create_lxc_container()
- pct create output now appears in the combined installation log (Phase 1)

Result: error logs now contain actual command output (apt errors, download
failures, pct create errors) instead of only status messages.
2026-02-28 08:50:29 +01:00
..