cmd/containerboot: fix TS_STATE_DIR environment variable

It's supposed to set `--statedir` rather than `--state` file.

Fixes #6634.

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:
Anton Tolchanov
2022-12-06 13:31:50 +00:00
committed by Dave Anderson
parent 7048024e04
commit 5ff946a9e6
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ func TestContainerBoot(t *testing.T) {
"TS_STATE_DIR": filepath.Join(d, "tmp"),
},
WantArgs1: []string{
"/usr/bin/tailscaled --socket=/tmp/tailscaled.sock --state=/tmp --tun=userspace-networking",
"/usr/bin/tailscaled --socket=/tmp/tailscaled.sock --statedir=/tmp --tun=userspace-networking",
"/usr/bin/tailscale --socket=/tmp/tailscaled.sock up --accept-dns=false --authkey=tskey-key",
},
Status1: ipnstate.Status{