fix(deploy): keep existing manual TUN passthrough on reused CTs (#6)

create-ct.sh only recognised devN passthrough and added dev0 on top of a
manual lxc.mount.entry for /dev/net/tun (left by earlier Tailscale setups),
so the CT failed to start in the autodev hook (EEXIST). Detection now lives
in ct-config.sh with a regression test.
This commit is contained in:
Florian Schmidt
2026-11-16 09:35:19 +01:00
parent c3ef790d9d
commit df489fa147
4 changed files with 32 additions and 2 deletions
+3 -1
View File
@@ -58,6 +58,8 @@ apt signing-key compatibility issues on Debian 13. Rerun the installer to update
Node 22 security releases; unattended upgrades cover Debian packages only.
Build tools support node-pty compilation. Claude uses its native installer.
Local deployment regression: `bash deploy/test/template-picker.test.sh`.
Local deployment regressions: `bash deploy/test/template-picker.test.sh` and
`bash deploy/test/ct-config.test.sh`. Existing CTs with a manual TUN mount entry
(earlier Tailscale setups) keep it; no `dev0` is added on top.
The scripts require bash, use LF endings, and avoid early-consuming pipelines
under pipefail. Proxmox, systemd, Tailscale and SSH require deployment validation.