fix preflight
This commit is contained in:
@@ -1,38 +1,40 @@
|
|||||||
{
|
{
|
||||||
"name": "Arch Linux",
|
"name": "Arch Linux",
|
||||||
"slug": "archlinux",
|
"slug": "archlinux",
|
||||||
"categories": [2],
|
"categories": [
|
||||||
"date_created": "2026-04-27",
|
2
|
||||||
"type": "ct",
|
],
|
||||||
"updateable": true,
|
"date_created": "2026-04-27",
|
||||||
"privileged": false,
|
"type": "ct",
|
||||||
"interface_port": null,
|
"updateable": true,
|
||||||
"documentation": "https://wiki.archlinux.org/",
|
"privileged": false,
|
||||||
"website": "https://archlinux.org/",
|
"interface_port": null,
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/arch-linux.webp",
|
"documentation": "https://wiki.archlinux.org/",
|
||||||
"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.",
|
"website": "https://archlinux.org/",
|
||||||
"install_methods": [
|
"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.",
|
||||||
"type": "default",
|
"install_methods": [
|
||||||
"script": "ct/archlinux.sh",
|
{
|
||||||
"config_path": null,
|
"type": "default",
|
||||||
"resources": {
|
"script": "ct/archlinux.sh",
|
||||||
"cpu": 1,
|
"config_path": null,
|
||||||
"ram": 512,
|
"resources": {
|
||||||
"hdd": 4,
|
"cpu": 1,
|
||||||
"os": "Arch Linux",
|
"ram": 512,
|
||||||
"version": "base"
|
"hdd": 4,
|
||||||
}
|
"os": "Arch Linux",
|
||||||
}
|
"version": "base"
|
||||||
],
|
}
|
||||||
"default_credentials": {
|
}
|
||||||
"username": null,
|
],
|
||||||
"password": null
|
"default_credentials": {
|
||||||
},
|
"username": null,
|
||||||
"notes": [
|
"password": null
|
||||||
{
|
},
|
||||||
"text": "Arch Linux is a rolling-release distribution. Run 'pacman -Syu' regularly to keep the system up to date.",
|
"notes": [
|
||||||
"type": "info"
|
{
|
||||||
}
|
"text": "Arch Linux is a rolling-release distribution. Run 'pacman -Syu' regularly to keep the system up to date.",
|
||||||
]
|
"type": "info"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -532,7 +532,7 @@ preflight_template_available() {
|
|||||||
local local_match=0
|
local local_match=0
|
||||||
while read -r storage_name _; do
|
while read -r storage_name _; do
|
||||||
[[ -z "$storage_name" ]] && continue
|
[[ -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
|
local_match=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@@ -545,7 +545,7 @@ preflight_template_available() {
|
|||||||
|
|
||||||
# Check online catalog
|
# Check online catalog
|
||||||
local online_match=0
|
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
|
online_match=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user