Skip to content

Commit

Permalink
Disable unnecessary flaky systemd services (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Oct 9, 2024
1 parent c8aa436 commit da29804
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions dev/distros/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#!/bin/bash

# Disable getty service as it's flaky and doesn't apply in containers
systemctl mask [email protected]
# Disable unneeded services
systemctl mask \
apt-daily-upgrade.service \
apt-daily.service \
dpkg-db-backup.service \
getty-static.service \
[email protected] \
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
Expand Down

0 comments on commit da29804

Please sign in to comment.