1533 Commits

Author SHA1 Message Date
MickLesk
3d6a5f58b0 fix: Multiple distro issues from testing
Devuan:
- Fixed sed syntax error: replaced -E with BRE, removed invalid [^$] pattern
- Simplified regex patterns for inittab autologin matching

openEuler:
- Added template patching to inject /etc/redhat-release before pct create
- This fixes 'error in setup task PVE::LXC::Setup::post_create_hook'
- Reverted to unprivileged container (privileged not needed with patch)

openSUSE:
- Added --gpg-auto-import-keys to zypper to avoid interactive GPG prompts
- This was causing the 15+ minute hangs during package manager init

Gentoo:
- Changed to use emerge-webrsync (http) instead of emerge --sync (rsync)
- webrsync is significantly faster than full rsync sync
- Install curl FIRST before other packages (required for install.func)
- Better error handling with separate curl check

Rocky Linux DNS issue:
- Not a script bug - container network/DNS not working
- User should check container gateway and DNS settings
2026-01-12 21:58:15 +01:00
MickLesk
b8afdab106 fix: Multi-distro LXC container fixes for autologin and package installation
- Rocky/AlmaLinux 10 (EL10): Version detection for DNF 5 with correct packages (langpacks-en instead of glibc-langpack-en), makecache refresh, fallback to minimal install
- openSUSE: Install ncurses-utils and terminfo-base, set TERM in /etc/profile.d and /etc/environment to fix 'unknown terminal type'
- Gentoo: Fixed template pattern to use underscore (-openrc_) instead of dash, special version handling
- openEuler: Set privileged container (var_unprivileged=0) to workaround PVE setup hook limitation
- Devuan: Enhanced sysvinit autologin with multiple inittab patterns, fallback console entry, telinit reload
- CentOS/all: Updated URLs from raw.githubusercontent.com to git.community-scripts.org
- General: Better error handling and removed duplicate code blocks
2026-01-12 21:34:58 +01:00
CanbiZ
47b4ea5c40 Improve locale and template handling for LXC builds
Adds explicit locale package installation and locale setup for Debian, Ubuntu, Devuan, RHEL-based, openSUSE, and openEuler containers to ensure proper locale generation on minimal templates. Refines template pattern matching for CentOS Stream and Gentoo, and deduplicates openSUSE handling. Also, refactors misc/core.func for consistent indentation and minor logic improvements.
2026-01-12 13:58:25 +01:00
CanbiZ
698a17089c fixes 2026-01-12 09:13:20 +01:00
CanbiZ
dfed41f70f Format 2026-01-12 08:55:45 +01:00
CanbiZ
37fdd4779b Get Features & Fixes from Upstream 2026-01-12 08:55:28 +01:00
CanbiZ
7129c0dbd9 Tools.func: Get Version from Upstream (VE) 2026-01-12 08:51:11 +01:00
MickLesk
15d22d7f98 filename fix 2026-01-06 20:24:31 +01:00
MickLesk
e06cd44584 2026-01-06 20:10:34 +01:00
Tobias
7c27cceec6 some more copyright 2026-01-06 12:43:41 +01:00
Tobias
c5786b9210 happ new year - well a bit late :D 2026-01-06 12:36:02 +01:00
Casey Jones
c11ddd0e2b add libmfx-gen1.2 for intel hwaccel 2025-12-28 10:48:56 -06:00
AlphaLawless
a104248244
update romm script - working now 2025-12-25 22:28:50 -03:00
MickLesk
92cbcd5132 fix: LXC distro compatibility issues
- Gentoo: Fix template pattern to match 'gentoo-current-openrc' naming
- openSUSE: Sanitize ANSI escape codes from MSG_INFO_SHOWN array keys
- Devuan: Use flexible runlevel matching for sysvinit autologin
- CentOS/RHEL: Add missing '-' before $TERM in agetty commands

Fixes reported issues:
- Gentoo template not found (wrong pattern '-current_')
- openSUSE 'not a valid identifier' error on msg_ok with color codes
- Devuan autologin failing due to strict runlevel pattern
- CentOS autologin improvements for LXC console
2025-12-24 14:27:38 +01:00
CanbiZ
699a3b3a8c merge from VE 2025-12-17 10:04:54 +01:00
CanbiZ
66c7b2e168 Update Hoodik build scripts and requirements
Increase default RAM to 4GB and disk to 20GB for Hoodik builds in scripts and metadata. Split frontend and backend build steps, add frontend build commands, and clean up build artifacts after installation. Update installation instructions and warnings to reflect new requirements and build times. Change default URLs to use HTTP instead of HTTPS and adjust systemd service working directory.
2025-12-10 07:52:51 +01:00
CanbiZ
7373ecfc32 Update build.func 2025-12-10 07:42:56 +01:00
CanbiZ
e3ac35fac2 Update passthrough.func 2025-12-10 07:42:09 +01:00
CanbiZ
dc7f5074a2 testing 2025-12-09 15:34:29 +01:00
pshankinclarke
dbd1b9c5d1 fix name collision 2025-12-08 17:30:04 -08:00
CanbiZ
4076b7e632 autologin 2025-12-08 15:15:42 +01:00
CanbiZ
dd0f7b96f8 reordner baks 2025-12-08 15:14:55 +01:00
CanbiZ
9e4d367415 Report container build failures to API before cleanup
Adds calls to post_update_to_api to notify the API of container build failures before prompting for container cleanup in both build and error handler scripts.
2025-12-08 15:12:31 +01:00
CanbiZ
877ac7875e bump from ve 2025-12-08 15:08:20 +01:00
CanbiZ
465b4d0d24 Update build.func 2025-12-08 09:24:18 +01:00
CanbiZ
231fb62891 Update build.func 2025-12-08 09:21:14 +01:00
CanbiZ
03a5149f50 merge from main 2025-12-08 09:17:21 +01:00
CanbiZ
49c87aecc4 Update tools.func 2025-12-05 15:37:51 +01:00
CanbiZ
f431d59f93 Improve update script generation for containers
The update script now uses the OS variable for OS-based containers instead of the app name, and the script source URL has been updated to use git.community-scripts.org. This ensures the correct update script is fetched for each container type.
2025-12-05 10:30:35 +01:00
CanbiZ
862f9bdb7e Update install.func 2025-12-04 16:12:05 +01:00
CanbiZ
a736445bcf Improve auto-login setup for LXC containers with systemd
Refines the configuration of getty services for auto-login in LXC containers. Adds explicit handling for console-getty.service (used in Fedora/RHEL) and container-getty@1.service (Debian/Ubuntu), ensuring proper override and enabling where necessary.
2025-12-04 15:48:06 +01:00
CanbiZ
4a6f783ddb Update build.func 2025-12-04 15:19:58 +01:00
CanbiZ
4ed0fa9697 Update build.func 2025-12-04 15:18:40 +01:00
CanbiZ
f799a11348 Refactor auto-login setup for various init systems
Simplifies and improves auto-login configuration for systemd, openrc, and sysvinit. Removes unnecessary service reloads and restarts during installation, and directly modifies configuration files where appropriate.
2025-12-04 15:08:09 +01:00
CanbiZ
19a2d83c5a 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.
2025-12-04 15:00:10 +01:00
CanbiZ
8aecfce5a3 Expand cleanup_lxc to support more distros
The cleanup_lxc function now supports package manager cleanup for Fedora, Rocky, AlmaLinux, CentOS (dnf/yum), openSUSE (zypper), and Gentoo (emerge), in addition to Alpine and Debian/Ubuntu. All package manager and language tool cleanup commands now suppress error output for robustness. JSON files were reformatted for consistent indentation.
2025-12-04 14:55:00 +01:00
CanbiZ
19f3c6b67d Reindent functions to use consistent 2-space style
Changed all function bodies in misc/build.func to use 2-space indentation for improved readability and consistency. No logic changes were made; only whitespace and indentation were updated.
2025-12-04 14:41:02 +01:00
CanbiZ
8f3162cce1 Create build.func.pve9-update 2025-12-04 14:18:22 +01:00
CanbiZ
d677488b29 Refactor storage validation and error codes for containers
Simplifies and streamlines storage validation logic in create_lxc_container, removing redundant content checks and using direct exit codes for unsupported storage types. Updates error_handler.func with clearer, more specific Proxmox exit code explanations and improves code consistency and readability throughout error handling functions.
2025-12-04 14:06:16 +01:00
CanbiZ
12f92c0947 Indent all function bodies for improved readability
All function bodies in build.func are now consistently indented, improving code readability and maintainability. No logic changes were made; only whitespace and indentation were updated.
2025-12-04 14:00:18 +01:00
CanbiZ
2b9851ba38 Temporarily disable 'set -u' in cloud-init.func
Disables 'unbound variable' errors at the start of the script to prevent issues with unset variables, and restores the previous shell options at the end. This ensures compatibility and avoids unexpected script failures.
2025-12-03 13:31:17 +01:00
CanbiZ
c961dffcf1 Fix base package pre-installation check in UniFi VM script
Update the logic for detecting errors during base package pre-installation in unifi-os-server-vm.sh by checking for 'error' in the output. Also correct URLs in cloud-init.func to use the correct repository path.
2025-12-03 13:28:30 +01:00
CanbiZ
3526f7fce3 Update build.func 2025-12-03 11:23:35 +01:00
pshankinclarke
2a0ce9aaeb fix unbound IPV6_METHOD crash with 2025-12-02 21:40:50 -08:00
CanbiZ
9f36d3fac0 Add granular IPv6 disable option to setup scripts
Expanded IPv6 configuration in build.func to include a 'disable' option with clearer descriptions. Updated install.func to use IPV6_METHOD for disabling IPv6 via sysctl.d, improving clarity and control over IPv6 management.
2025-12-02 11:13:11 +01:00
CanbiZ
f8f95d4881 merge dev <> live 2025-12-02 10:23:26 +01:00
CanbiZ
40b9867653 Update cloud-init.func 2025-12-01 12:51:51 +01:00
CanbiZ
9a3cc3de61 Documentation 2025-12-01 10:40:14 +01:00
CanbiZ
43dd7aacc8 Cleanup 2025-12-01 10:19:04 +01:00
CanbiZ
6da891f822 typo 2025-11-28 09:07:57 +01:00