Skip to content

Commit bb00b9f

Browse files
authored
core: fix breaking redownload for lxc containers (#5906)
1 parent 12b9e16 commit bb00b9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/create_lxc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ fi
253253
TEMPLATE_SEARCH="${PCT_OSTYPE}-${PCT_OSVERSION:-}"
254254

255255
msg_info "Updating LXC Template List"
256-
if ! timeout 15 pveam update >/dev/null 2>&1; then
256+
if ! pveam update >/dev/null 2>&1; then
257257
TEMPLATE_FALLBACK=$(pveam list "$TEMPLATE_STORAGE" | awk "/$TEMPLATE_SEARCH/ {print \$2}" | sort -t - -k 2 -V | tail -n1)
258258
if [[ -z "$TEMPLATE_FALLBACK" ]]; then
259259
msg_error "Failed to update LXC template list and no local template matching '$TEMPLATE_SEARCH' found."
@@ -284,7 +284,7 @@ if ! pveam list "$TEMPLATE_STORAGE" | grep -q "$TEMPLATE" || ! zstdcat "$TEMPLAT
284284
for attempt in {1..3}; do
285285
msg_info "Attempt $attempt: Downloading LXC template..."
286286

287-
if timeout 120 pveam download "$TEMPLATE_STORAGE" "$TEMPLATE" >/dev/null 2>&1; then
287+
if pveam download "$TEMPLATE_STORAGE" "$TEMPLATE" >/dev/null 2>&1; then
288288
msg_ok "Template download successful."
289289
break
290290
fi

0 commit comments

Comments
 (0)