From e6337af0d17e761aea373c372f28615a3bec2500 Mon Sep 17 00:00:00 2001 From: spektr Date: Sun, 29 Nov 2026 05:49:08 +0100 Subject: [PATCH] =?UTF-8?q?GNAI-025:=20Fix=20=E2=80=94=20rootfs-Verify-Reg?= =?UTF-8?q?ex=20(\$=20war=20literales=20Dollar,=20nie=20matchend)=20auf=20?= =?UTF-8?q?EOL-Anchor=20korrigiert;=20Retry=20braucht=20pct=20destroy=2011?= =?UTF-8?q?7=20--purge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .../lxc/ct-117-fluxer/GNAI-025-PLAN_Fluxer-LXC.md | 1 + proxmox/lxc/ct-117-fluxer/scripts/provision-ct117-fluxer.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/platform/proxmox-server/lxc/ct-117-fluxer/GNAI-025-PLAN_Fluxer-LXC.md b/docs/platform/proxmox-server/lxc/ct-117-fluxer/GNAI-025-PLAN_Fluxer-LXC.md index e906981..130da3c 100644 --- a/docs/platform/proxmox-server/lxc/ct-117-fluxer/GNAI-025-PLAN_Fluxer-LXC.md +++ b/docs/platform/proxmox-server/lxc/ct-117-fluxer/GNAI-025-PLAN_Fluxer-LXC.md @@ -13,6 +13,7 @@ | 2026-11-27 | 1.3 | Mistral Vibe / Operator | Provisioning: local-lvm-Extraktion schlägt fehl (tar Permission denied), Storage auf daten4 umgestellt (pvesm: daten4 4,7 % belegt); CT 117 noch nicht angelegt | | 2026-11-27 | 1.4 | Mistral Vibe / Operator | Operator bestätigt: local-lvm hat reichlich Platz und alle bisherigen LXCs liefen dort — Storage-Wechsel auf daten4 war voreilig; Default bleibt local-lvm, Ursache der tar-Permission-denied wird diagnostiziert (LV-Mountpoint nicht schreibbar für uid 100000) | | 2026-11-27 | 1.5 | Mistral Vibe / Operator | Ursache gefunden: `umask 077` im Provisioning-Skript vererbt sich an `pct create` → rootfs-Mountpoint 0700 root → tar unter lxc-usernsexec får „Permission denied“. Reproduziert (VMID 117 minimal OK, VMID 119 mit umask 077 FAIL). Fix: `umask 022` vor dem pct-Aufruf; Storage bleibt local-lvm | +| 2026-11-27 | 1.6 | Mistral Vibe | Zweiter Skript-Bug gefixt: rootfs-Verify-Regex enthielt `\\$` (literales Dollar statt EOL-Anchor) und matchte nie; jetzt `(,|$)`. Hinweis: Das CT-101-Template-Skript trägt dieselbe latente Regex — dort unberührt. Nach dem Fehllauf muss CT 117 vor dem Retry per `pct destroy 117 --purge` entfernt werden (Guard verhindert sonst den Rerun) | ## 1. Zweck und Leitentscheidung diff --git a/proxmox/lxc/ct-117-fluxer/scripts/provision-ct117-fluxer.sh b/proxmox/lxc/ct-117-fluxer/scripts/provision-ct117-fluxer.sh index e6f6fca..9e4194e 100755 --- a/proxmox/lxc/ct-117-fluxer/scripts/provision-ct117-fluxer.sh +++ b/proxmox/lxc/ct-117-fluxer/scripts/provision-ct117-fluxer.sh @@ -169,7 +169,7 @@ grep -qx 'ostype: debian' <<<"$config" || die 'unexpected os type' grep -qx 'timezone: Europe/Berlin' <<<"$config" || die 'unexpected timezone' grep -Eq '^features: .*nesting=1' <<<"$config" || die 'nesting is not enabled' grep -Eq '^features: .*keyctl=1' <<<"$config" || die 'keyctl is not enabled' -grep -Eq "^rootfs: ${CONTAINER_STORAGE}:.*,size=${ROOTFS_GB}G(,|\\$)" <<<"$config" || +grep -Eq "^rootfs: ${CONTAINER_STORAGE}:.*,size=${ROOTFS_GB}G(,|$)" <<<"$config" || die 'unexpected root filesystem allocation' net0="$(grep '^net0: ' <<<"$config")" for expected_net_field in \