Skip to content

Commit

Permalink
Merge pull request os-autoinst#4024 from asdil12/systemd
Browse files Browse the repository at this point in the history
openqa-bootstrap: Check that systemd is available
  • Loading branch information
mergify[bot] authored Jul 12, 2021
2 parents e3a5952 + 66360de commit 05fed65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/openqa-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ set -x
dbname="${dbname:="openqa"}"
dbuser="${dbuser:="geekotest"}"

# ensure that systemd is available (which is not the case in some containers)
if [ -z "$BYPASS_SYSTEMD_CHECK" ] && ! systemctl > /dev/null ; then
echo "$0 requires systemd to be installed and running as the init daemon with PID=1"
exit 1
fi

# add extra repos for leap
# shellcheck disable=SC1091
. /etc/os-release
Expand Down

0 comments on commit 05fed65

Please sign in to comment.