summaryrefslogtreecommitdiff
path: root/contrib/cirrus/packer/systemd_banish.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-09 16:03:11 -0400
committerGitHub <noreply@github.com>2020-09-09 16:03:11 -0400
commite1b47296daaf4148d9970b59757a86e71bf8bb10 (patch)
tree8193d7cc884d2b8242d7bf8c1acb8b0244829316 /contrib/cirrus/packer/systemd_banish.sh
parent08b602043ec07601b9be23c449c7773067683d90 (diff)
parented1e87ecb57d2280ef3b02e2b437ad9b378d21a2 (diff)
downloadpodman-e1b47296daaf4148d9970b59757a86e71bf8bb10.tar.gz
podman-e1b47296daaf4148d9970b59757a86e71bf8bb10.tar.bz2
podman-e1b47296daaf4148d9970b59757a86e71bf8bb10.zip
Merge pull request #7485 from cevich/migrate_packer
Cirrus: Obsolete CI:IMG process & related files
Diffstat (limited to 'contrib/cirrus/packer/systemd_banish.sh')
-rwxr-xr-xcontrib/cirrus/packer/systemd_banish.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/contrib/cirrus/packer/systemd_banish.sh b/contrib/cirrus/packer/systemd_banish.sh
deleted file mode 100755
index 2219f2a4f..000000000
--- a/contrib/cirrus/packer/systemd_banish.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bash
-
-set +e # Not all of these exist on every platform
-
-# This is intended to be executed on VMs as a startup script on initial-boot.
-# Alternatively, it may be executed with the '--list' option to return the list
-# of systemd units defined for disablement (useful for testing).
-
-EVIL_UNITS="cron crond atd apt-daily-upgrade apt-daily fstrim motd-news systemd-tmpfiles-clean"
-
-if [[ "$1" == "--list" ]]
-then
- echo "$EVIL_UNITS"
- exit 0
-fi
-
-echo "Disabling periodic services that could destabilize testing:"
-for unit in $EVIL_UNITS
-do
- echo "Banishing $unit (ignoring errors)"
- (
- sudo systemctl stop $unit
- sudo systemctl disable $unit
- sudo systemctl disable $unit.timer
- sudo systemctl mask $unit
- sudo systemctl mask $unit.timer
- ) &> /dev/null
-done