HelperScripts-for-ProxmoxVE/misc
Atahan Kucuk bc43c262a8
fix: make LXC banner OS detection dynamic via /etc/os-release (#14269)
* fix: derive LXC banner OS from os-release

Read os-release at login time for the generated LXC banner so OS display stays accurate after template changes or in-place upgrades. Prefer PRETTY_NAME with safe fallbacks to NAME, template defaults, and Unknown OS while preserving existing banner formatting.

Co-authored-by: Cursor <cursoragent@cursor.com>

* refactor: simplify dynamic LXC banner OS resolution

Reduce banner OS rendering to a minimal runtime os-release read with PRETTY_NAME/NAME fallbacks and Unknown OS default. Remove redundant OS rewrites from update_motd_ip now that OS display is resolved dynamically at login.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 07:46:18 +02:00
..
images remove old files and assets (#9991) 2025-12-15 17:37:26 +01:00
alpine-install.func fix: make LXC banner OS detection dynamic via /etc/os-release (#14269) 2026-05-22 07:46:18 +02:00
alpine-tools.func core/tools: replace generic return 1 exit_codes with more specific exit_codes (#13311) 2026-03-26 16:07:38 +01:00
api.func core: fix some pct create issues (telemetry) + cleanup (#13810) 2026-04-17 15:19:52 +02:00
build.func fix: make LXC banner OS detection dynamic via /etc/os-release (#14269) 2026-05-22 07:46:18 +02:00
cloud-init.func core/tools: replace generic return 1 exit_codes with more specific exit_codes (#13311) 2026-03-26 16:07:38 +01:00
core.func Proxmox VE 9.2 support (#14624) 2026-05-21 19:04:47 +02:00
error_handler.func core: auto-size NODE_OPTIONS heap (#13960) 2026-04-23 22:17:25 +02:00
install.func fix: make LXC banner OS detection dynamic via /etc/os-release (#14269) 2026-05-22 07:46:18 +02:00
tools.func tools.func: replace max-time with speed-limit stall detection in curl_download (#14545) 2026-05-17 14:01:56 +02:00
vm-core.func Proxmox VE 9.2 support (#14624) 2026-05-21 19:04:47 +02:00