Unify install logic and cleanup LXC for all OS types

Refactored build.func to use a unified install.func for all supported OS types, simplifying OS detection and package installation. Added cleanup_lxc step to all install scripts. Removed support for runit, pacman, and nix-env from install.func, and improved SSH server installation logic for containers. Updated template pattern matching for additional OS types.
This commit is contained in:
CanbiZ
2025-12-04 15:00:10 +01:00
parent 8aecfce5a3
commit 19a2d83c5a
11 changed files with 97 additions and 81 deletions

View File

@@ -795,7 +795,6 @@ is_verbose_mode() {
# ------------------------------------------------------------------------------
cleanup_lxc() {
msg_info "Cleaning up"
# OS-specific package manager cleanup
if is_alpine; then
$STD apk cache clean 2>/dev/null || true