k3s: fix containerd-shim process matching in killall script (#453612)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user