SearXNG quadlet: use AddDevice= (the generator rejects Device=)

Device= in [Container] is a [Volume]-group key; the container device key is
AddDevice= (maps to podman --device). Update the /dev/net/tun device line and
the test seam.
This commit is contained in:
Frank
2026-08-19 00:00:42 -07:00
parent e036296fd1
commit 06ac2a84cf
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ ContainerName=gluetun
Network=searxng.network
Image=docker.io/qmcgaw/gluetun:latest
AddCapability=NET_ADMIN
Device=/dev/net/tun:/dev/net/tun
AddDevice=/dev/net/tun:/dev/net/tun
Environment=VPN_SERVICE_PROVIDER=${VPN_SERVICE_PROVIDER}
Environment=VPN_TYPE=${VPN_TYPE}
Environment=WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY}
+2 -2
View File
@@ -39,8 +39,8 @@ QDIR="$REPO_ROOT/dankclaw/searxng/quadlet"
@test "gluetun has NET_ADMIN and the /dev/net/tun device" {
grep -qE '^AddCapability=NET_ADMIN' "$QDIR/gluetun.container" \
|| { echo "gluetun.container must set AddCapability=NET_ADMIN"; return 1; }
grep -qE '^Device=/dev/net/tun' "$QDIR/gluetun.container" \
|| { echo "gluetun.container must set Device=/dev/net/tun"; return 1; }
grep -qE '^AddDevice=/dev/net/tun' "$QDIR/gluetun.container" \
|| { echo "gluetun.container must set AddDevice=/dev/net/tun"; return 1; }
}
@test "valkey joins searxng.network and is reachable by the name valkey" {