From ac042d1388d628318f6a4fc46c49227039e316db Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 27 Apr 2026 13:55:26 +0200 Subject: [PATCH] fix preflight --- json/archlinux.json | 76 +++++++++++++++++++++++---------------------- misc/build.func | 4 +-- 2 files changed, 41 insertions(+), 39 deletions(-) diff --git a/json/archlinux.json b/json/archlinux.json index d56ed82c..d34fe530 100644 --- a/json/archlinux.json +++ b/json/archlinux.json @@ -1,38 +1,40 @@ { - "name": "Arch Linux", - "slug": "archlinux", - "categories": [2], - "date_created": "2026-04-27", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": null, - "documentation": "https://wiki.archlinux.org/", - "website": "https://archlinux.org/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/arch-linux.webp", - "description": "Arch Linux is a lightweight, rolling-release Linux distribution that follows a keep-it-simple philosophy. It provides a minimalist base system that users can build upon according to their needs.", - "install_methods": [ - { - "type": "default", - "script": "ct/archlinux.sh", - "config_path": null, - "resources": { - "cpu": 1, - "ram": 512, - "hdd": 4, - "os": "Arch Linux", - "version": "base" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "Arch Linux is a rolling-release distribution. Run 'pacman -Syu' regularly to keep the system up to date.", - "type": "info" - } - ] -} + "name": "Arch Linux", + "slug": "archlinux", + "categories": [ + 2 + ], + "date_created": "2026-04-27", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": null, + "documentation": "https://wiki.archlinux.org/", + "website": "https://archlinux.org/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/arch-linux.webp", + "description": "Arch Linux is a lightweight, rolling-release Linux distribution that follows a keep-it-simple philosophy. It provides a minimalist base system that users can build upon according to their needs.", + "install_methods": [ + { + "type": "default", + "script": "ct/archlinux.sh", + "config_path": null, + "resources": { + "cpu": 1, + "ram": 512, + "hdd": 4, + "os": "Arch Linux", + "version": "base" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "Arch Linux is a rolling-release distribution. Run 'pacman -Syu' regularly to keep the system up to date.", + "type": "info" + } + ] +} \ No newline at end of file diff --git a/misc/build.func b/misc/build.func index 8bd7e6fc..157e5382 100644 --- a/misc/build.func +++ b/misc/build.func @@ -532,7 +532,7 @@ preflight_template_available() { local local_match=0 while read -r storage_name _; do [[ -z "$storage_name" ]] && continue - if pveam list "$storage_name" 2>/dev/null | awk '{print $1}' | grep -qE "^${storage_name}:vztmpl/${search_pattern}"; then + if pveam list "$storage_name" 2>/dev/null | awk '{print $1}' | grep -qE "^${storage_name}:vztmpl/${search_pattern}[._-]"; then local_match=1 break fi @@ -545,7 +545,7 @@ preflight_template_available() { # Check online catalog local online_match=0 - if pveam available -section system 2>/dev/null | awk '{print $2}' | grep -qE "^${search_pattern}[.-]"; then + if pveam available -section system 2>/dev/null | awk '{print $2}' | grep -qE "^${search_pattern}[._-]"; then online_match=1 fi