Skip to content

Commit a2433e2

Browse files
kate-goldenringMossaka
authored andcommitted
Do not configure SystemdCgroup = false
Signed-off-by: Kate Goldenring <[email protected]>
1 parent 65b332b commit a2433e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

node-installer/script/installer.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ if ! grep -q spin $NODE_ROOT$CONTAINERD_CONF; then
8383
rm -Rf $NODE_ROOT$KWASM_DIR/active
8484
fi
8585

86-
# Check if Spin runtime options have not been configured
86+
# Configure Spin runtime options if using systemd cgroups and no options are configured
8787
# TODO: this should allow for some options to already be configured and just additively
88-
# configuring SystemdCgroup
89-
if ! grep -q 'runtimes.spin.options' $NODE_ROOT$CONTAINERD_CONF; then
88+
# configure SystemdCgroup
89+
if ! grep -q 'runtimes.spin.options' $NODE_ROOT$CONTAINERD_CONF && [ "$SYSTEMD_CGROUP" = "true" ]; then
9090
echo "Setting SystemdCgroup to $SYSTEMD_CGROUP in Spin containerd configuration"
9191
if $IS_K3S; then
9292
echo '

0 commit comments

Comments
 (0)