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
This commit is contained in:
Robert Krahn 2024-06-07 21:42:31 +02:00
parent 56446ff9fe
commit 0e7f783fa2

View File

@ -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 = [