fix(k3s): 修正磁盘调度 unit 启动命令

systemd 会展开 unit 命令中的百分号 specifier,导致原 oneshot 启动失败。改用 echo 写入调度器,并强制校验 unit 为 active;bash -n、ShellCheck、manual-release-test.sh 通过。
This commit is contained in:
2026-08-02 10:41:16 +08:00
parent e20688bbe2
commit 9a01fd4657
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -309,6 +309,7 @@ grep -Fq 'wal_sender_timeout: 30s' "$root/deploy/kubernetes/production/database.
grep -Fq 'wal_receiver_timeout: 30s' "$root/deploy/kubernetes/production/database.yaml"
bash -n "$root/scripts/cluster/configure-control-plane-io.sh"
grep -Fq 'Before=k3s.service' "$root/scripts/cluster/configure-control-plane-io.sh"
grep -Fq "ExecStart=/bin/sh -c 'echo mq-deadline" "$root/scripts/cluster/configure-control-plane-io.sh"
grep -Fq 'restart=false' "$root/scripts/cluster/configure-control-plane-io.sh"
grep -Fq 'configure-control-plane-io.sh apply' "$root/docs/operations/k3s-ha-runbook.md"