k3s: fix containerd-shim process matching in killall script

This commit is contained in:
Tomas Leypold
2025-10-19 22:38:13 +02:00
parent 53219405e1
commit ece812ce6d
@@ -203,8 +203,9 @@ let
# Let killall expect "containerd-shim" in the Nix store
substituteInPlace install.sh \
--replace-fail '"''${K3S_DATA_DIR}"' "" \
--replace-fail '/data/[^/]*/bin/containerd-shim' \
'/nix/store/.*k3s-containerd.*/bin/containerd-shim'
'/nix/store/[^/]*k3s-containerd[^/]*/bin/containerd-shim'
remove_matching_line() {
line_to_delete=$(grep -n "$1" install.sh | cut -d : -f 1 || true)