Commit 0e7f783f authored by Robert Krahn's avatar Robert Krahn
Browse files

k3s: add bash to runtime deps for tailscale

When setting up k3s to use tailscale as a network backend, the flannel go
library (used by k3s by default) depends on the `sh` binary to execute commands,
in particular to run `PostStartupCommand` and `ShutdownCommand` commands.
Without having bash/sh available, the network setup process will fail with:

```
flannel exited: failed to register flannel network: failed to run command: tailscale set --accept-routes --advertise-routes=$SUBNET Err: exec: \"sh\": executable file not found in $PATH
```

This fixes that. ref #317223
parent 56446ff9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -338,6 +338,7 @@ buildGoModule rec {
    util-linux # kubelet wants 'nsenter' from util-linux: https://github.com/kubernetes/kubernetes/issues/26093#issuecomment-705994388
    conntrack-tools
    runc
    bash
  ];

  k3sKillallDeps = [