From da29804da8630048ae463416780cda5ec460bb5a Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Wed, 9 Oct 2024 11:25:17 -0700 Subject: [PATCH] Disable unnecessary flaky systemd services (#1305) --- dev/distros/entrypoint.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/dev/distros/entrypoint.sh b/dev/distros/entrypoint.sh index 6f7370817..a409f6353 100755 --- a/dev/distros/entrypoint.sh +++ b/dev/distros/entrypoint.sh @@ -1,7 +1,18 @@ #!/bin/bash -# Disable getty service as it's flaky and doesn't apply in containers -systemctl mask getty@tty1.service +# Disable unneeded services +systemctl mask \ + apt-daily-upgrade.service \ + apt-daily.service \ + dpkg-db-backup.service \ + getty-static.service \ + getty@tty1.service \ + console-getty.service \ + systemd-firstboot.service \ + systemd-ask-password-console.service \ + systemd-ask-password-wall.service \ + emergency.service \ + rescue.service # A unique machine ID is required for multi-node clusters in k0s <= v1.29 # https://github.com/k0sproject/k0s/blob/443e28b75d216e120764136b4513e6237cea7cc5/docs/external-runtime-deps.md#a-unique-machine-id-for-multi-node-setups