mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
nixos/rke2: modify the systemd unit name to be consistent with the upstream
remove `fix-systemd-unit-name.patch`.
This commit is contained in:
parent
aaac31c8a4
commit
7f6cd3837d
@ -241,7 +241,7 @@ in
|
||||
"kernel.panic_on_oops" = 1;
|
||||
};
|
||||
|
||||
systemd.services.rke2 = {
|
||||
systemd.services."rke2-${cfg.role}" = {
|
||||
description = "Rancher Kubernetes Engine v2";
|
||||
documentation = [ "https://github.com/rancher/rke2#readme" ];
|
||||
after = [ "network-online.target" ];
|
||||
|
@ -44,9 +44,6 @@ buildGoModule rec {
|
||||
lvm2 # dmsetup
|
||||
];
|
||||
|
||||
# Patch the systemd unit name to be `rke2.service`.
|
||||
patches = [ ./fix-systemd-unit-name.patch ];
|
||||
|
||||
# See: https://github.com/rancher/rke2/blob/e7f87c6dd56fdd76a7dab58900aeea8946b2c008/scripts/build-binary#L27-L38
|
||||
ldflags = [
|
||||
"-w"
|
||||
|
@ -1,14 +0,0 @@
|
||||
diff --git a/bundle/bin/rke2-killall.sh b/bundle/bin/rke2-killall.sh
|
||||
index 1099ad90..db8a7ea9 100755
|
||||
--- a/bundle/bin/rke2-killall.sh
|
||||
+++ b/bundle/bin/rke2-killall.sh
|
||||
@@ -54,8 +54,7 @@ export PATH=$PATH:/var/lib/rancher/rke2/bin
|
||||
|
||||
set -x
|
||||
|
||||
-systemctl stop rke2-server.service || true
|
||||
-systemctl stop rke2-agent.service || true
|
||||
+systemctl stop rke2.service || true
|
||||
|
||||
killtree $({ set +x; } 2>/dev/null; getshims; set -x)
|
||||
|
Loading…
Reference in New Issue
Block a user