port LXC side to Alpine/OpenRC, add Proxmox host-side creator

- Replace systemd units with OpenRC init scripts (supervise-daemon)
- Add wirecon-watchdog-loop.sh since OpenRC has no timers
- Switch install.sh to apk + rc-update
- Update bootstrap.sh to install git/bash via apk
- New proxmox/create-lxc.sh: picks next VMID, downloads Alpine template,
  creates unprivileged LXC with tun passthrough, chains bootstrap
- Rewrite README around the Proxmox one-liner flow
This commit is contained in:
d4nn13 committed 2026-04-19 18:40:55 +02:00
1 parent 390e10b06d
commit 5b9abdae08
13 files changed
+290 -128

No files matched your search

+8 -6
View File
@@ -25,15 +25,17 @@ if [[ $EUID -ne 0 ]]; then
fi
# --- prereqs ---------------------------------------------------------------
if ! command -v git >/dev/null; then
log "installing git"
if command -v apt-get >/dev/null; then
if ! command -v git >/dev/null || ! command -v bash >/dev/null; then
log "installing git + bash"
if command -v apk >/dev/null; then
apk add --no-cache git bash ca-certificates
elif command -v apt-get >/dev/null; then
DEBIAN_FRONTEND=noninteractive apt-get update -q
DEBIAN_FRONTEND=noninteractive apt-get install -yq git ca-certificates
DEBIAN_FRONTEND=noninteractive apt-get install -yq git bash ca-certificates
elif command -v dnf >/dev/null; then
dnf install -y git ca-certificates
dnf install -y git bash ca-certificates
else
echo "unsupported distro: need apt-get or dnf" >&2
echo "unsupported distro: need apk, apt-get, or dnf" >&2
exit 1
fi
fi